Last active
August 29, 2019 20:01
-
-
Save slightlytyler/ee38c42de602d1bbb6021a5db45bd4db to your computer and use it in GitHub Desktop.
Dockerfile.dev for slightlytyler/docker-nginx-demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:11.1.0-alpine AS node_base | |
FROM node_base as deps | |
WORKDIR /usr/app | |
COPY package.json /usr/app/package.json | |
COPY yarn.lock /usr/app/yarn.lock | |
RUN yarn install | |
FROM node_base as dev | |
WORKDIR /usr/app | |
COPY --from=deps /usr/app/node_modules /usr/app/node_modules | |
COPY . /usr/app | |
ENTRYPOINT ["yarn"] |
Think I had it this way to keep it simple for the medium tutorial. The latter is definitely is probably more succinct
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
to
?