Created
November 21, 2018 22:06
-
-
Save slightlytyler/3d5bc391d16a3d4236f3a596d35ee9c2 to your computer and use it in GitHub Desktop.
Dockerfile for slightlytyler/docker-ui-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 build | |
| WORKDIR /usr/app | |
| COPY --from=deps /usr/app/node_modules /usr/app/node_modules | |
| COPY . /usr/app | |
| RUN yarn build | |
| FROM scratch AS ui | |
| COPY --from=build /usr/app/dist /usr/app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment