Skip to content

Instantly share code, notes, and snippets.

@azlkiniue
Created March 10, 2021 11:16
Show Gist options
  • Save azlkiniue/e15118876ee2142777e0cc6ef347dee8 to your computer and use it in GitHub Desktop.
Save azlkiniue/e15118876ee2142777e0cc6ef347dee8 to your computer and use it in GitHub Desktop.
simple nodejs dockerfile example
FROM node:14-alpine
WORKDIR /app
COPY ["package.json", "package-lock.json*", "./"]
RUN npm install
COPY . .
RUN npm run build
CMD [ "npm", "run", "start" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment