frontend.Dockerfile 269 B

1234567891011
  1. FROM node:22-alpine AS build
  2. WORKDIR /workspace
  3. COPY frontend/package*.json ./
  4. RUN npm ci
  5. COPY frontend ./
  6. RUN npm run build
  7. FROM nginx:1.27-alpine
  8. COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
  9. COPY --from=build /workspace/dist /usr/share/nginx/html
  10. EXPOSE 80