Dockerfile 212 B

12345678910
  1. FROM node:alpine AS base
  2. # Copy project file
  3. COPY . .
  4. # Build project
  5. RUN npm i && npm run generate
  6. FROM nginx:1.19-alpine
  7. COPY nginx.conf /etc/nginx/conf.d/nginx.conf
  8. COPY --from=base dist /var/www/html/dist/