dockerfile-80

This commit is contained in:
Mackie 2026-06-08 07:10:43 +08:00
parent 423ce51857
commit 5ad51527a8

View file

@ -6,10 +6,9 @@ RUN npm install -g pnpm && pnpm install
COPY . .
RUN pnpm run build
# Stage 2: Serve
# Stage 2: Serve
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 3000
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]