Dockerfile 258 B

123456789101112131415
  1. FROM node:20-alpine AS build
  2. WORKDIR /app
  3. COPY package.json ./
  4. COPY package-lock.json ./
  5. RUN npm install
  6. COPY . ./
  7. RUN npm run build
  8. FROM nginx:1.19-alpine
  9. COPY nginx.conf /etc/nginx/conf.d/default.conf
  10. COPY --from=build /app/build /usr/share/nginx/html