Skip to content

Instantly share code, notes, and snippets.

@chanakaudaya
Created December 19, 2020 03:19
Show Gist options
  • Save chanakaudaya/3d1997795156a03feb246acc490d38ce to your computer and use it in GitHub Desktop.
Save chanakaudaya/3d1997795156a03feb246acc490d38ce to your computer and use it in GitHub Desktop.
Basic Dockerfile with todo JS application
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