Skip to content

Instantly share code, notes, and snippets.

@spy86
Created January 9, 2022 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spy86/60254f91b8372f2294ad0f2e420205a1 to your computer and use it in GitHub Desktop.
Save spy86/60254f91b8372f2294ad0f2e420205a1 to your computer and use it in GitHub Desktop.
#STAGE-1
FROM node:13.12.0 as build-stage
WORKDIR /app
COPY package*.json /app/
RUN npm install
COPY ./ /app/
RUN npm run build
#STAGE-2
FROM nginx:1.15
COPY --from=build-stage /app/build/ /usr/share/nginx/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment