Skip to content

Instantly share code, notes, and snippets.

@diestrin
Last active March 6, 2020 23:29
Show Gist options
  • Save diestrin/34ad8a519c631dc31119b85007e14a38 to your computer and use it in GitHub Desktop.
Save diestrin/34ad8a519c631dc31119b85007e14a38 to your computer and use it in GitHub Desktop.
### 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