Skip to content

Instantly share code, notes, and snippets.

@VisualBean
Created November 23, 2020 08:46
Show Gist options
  • Save VisualBean/eee598ae0e3d31f8030cd2167e10b862 to your computer and use it in GitHub Desktop.
Save VisualBean/eee598ae0e3d31f8030cd2167e10b862 to your computer and use it in GitHub Desktop.
Optimized dockerfile
FROM node:12-alpine
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install
COPY . .
CMD ["node", "/app/src/index.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment