Files
insurance-fe/Dockerfile
2025-08-26 16:18:04 +08:00

15 lines
343 B
Docker

# Build stage
FROM node:22.12 AS build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build -- --configuration production
# Serve stage
FROM nginx:alpine
COPY --from=build /app/dist/insurance-fe/browser /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]