Skip to content
Snippets Groups Projects
Select Git revision
  • ee575dae35e46c0c6b5b8093d5311552c1041eb1
  • master default protected
2 results

Dockerfile

Blame
  • Dockerfile 305 B
    # --- STAGE 1: Build 
    FROM node:14.18-alpine AS build
    WORKDIR /usr/src/app
    COPY package.json package-lock.json ./
    RUN npm install
    COPY . .
    RUN npm run build
    
    # ---STAGE 2: Run 
    FROM nginx:1.17.1-alpine
    COPY nginx.conf /etc/nginx/nginx.conf
    COPY --from=build /usr/src/app/dist/MainApp /usr/share/nginx/html