Skip to content

Instantly share code, notes, and snippets.

@hadoan
Created June 16, 2020 14:04
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 hadoan/081f798ceb59dd0ab1ac3ac64723f00a to your computer and use it in GitHub Desktop.
Save hadoan/081f798ceb59dd0ab1ac3ac64723f00a to your computer and use it in GitHub Desktop.
# Stage 1
FROM node:14.4.0-alpine as node
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# Stage 2
FROM nginx:1.13.12-alpine
COPY --from=node /usr/src/app/dist/TmdbMovies /usr/share/nginx/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment