Skip to content

Instantly share code, notes, and snippets.

@chanakaudaya
Created December 19, 2020 03:23
Show Gist options
  • Save chanakaudaya/cf70a03858092c980d59679a45a859b0 to your computer and use it in GitHub Desktop.
Save chanakaudaya/cf70a03858092c980d59679a45a859b0 to your computer and use it in GitHub Desktop.
Updated docker file for better image building
FROM node:12-alpine
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install --production
COPY . .
CMD ["node", "src/index.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment