Last active
March 6, 2020 23:29
-
-
Save diestrin/34ad8a519c631dc31119b85007e14a38 to your computer and use it in GitHub Desktop.
This file contains 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
### Build stage | |
FROM node:10.19.0 AS base | |
WORKDIR /usr/local/src | |
ADD ./package.json . | |
RUN npm i | |
ADD . . | |
RUN npm run build:ssr | |
### Final stage | |
FROM node:10.19.0 | |
WORKDIR /usr/local/src | |
COPY --from=base /usr/local/src/dist ./dist | |
COPY package.json package-lock.json ./ | |
RUN npm ci | |
CMD [ "npm", "run", "serve:ssr" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment