zyc df9147a554
All checks were successful
Build and Deploy Backend / build-and-deploy (push) Successful in 1m20s
Build and Deploy Web / build-and-deploy (push) Successful in 59s
fix build
2026-02-12 15:03:28 +08:00

24 lines
349 B
Docker

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