Skip to content

Instantly share code, notes, and snippets.

@TheYkk

TheYkk/dockerfile

Created Jun 15, 2020
Embed
What would you like to do?
# Install npm packages
FROM node:12-alpine as builder
WORKDIR /usr/src/app
COPY package.json .
RUN yarn install --prod
# Push js files
FROM node:12-alpine
WORKDIR /usr/src/app
COPY --from=builder /usr/src/app/node_modules /usr/src/app/node_modules
COPY ./src ./src
CMD node src/index.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.