Skip to content

Instantly share code, notes, and snippets.

@staskolukasz
Last active February 22, 2019 08:55
Show Gist options
  • Save staskolukasz/be873cb5bb22c1899bd25102b46c65a3 to your computer and use it in GitHub Desktop.
Save staskolukasz/be873cb5bb22c1899bd25102b46c65a3 to your computer and use it in GitHub Desktop.
Sample docker file for Node.js application
FROM node:10.13.0-alpine
WORKDIR /usr/app
COPY package.json .
COPY package-lock.json .
COPY index.js .
RUN npm install && npm cache clean --force
CMD ["npm", "run", "start"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment