Dockerfile 204 B

12345678910
  1. FROM node:14 as builder
  2. WORKDIR /app
  3. COPY . .
  4. RUN npm install
  5. RUN npm run build
  6. FROM nginx:1.19.0-alpine
  7. COPY --from=builder /app/build /usr/share/nginx/html
  8. EXPOSE 80
  9. CMD ["nginx", "-g", "daemon off;"]