部署:增加 docker-compose 与容器 nginx 配置,支持 docker 部署

This commit is contained in:
2025-08-23 17:15:00 +08:00
parent e24c5595a5
commit f43aa5e35f
3 changed files with 47 additions and 1 deletions

View File

@@ -7,6 +7,6 @@ RUN npm run build --prefix frontend
FROM nginx:stable-alpine
COPY --from=builder /app/frontend/dist /usr/share/nginx/html
COPY deploy/nginx/chat.conf /etc/nginx/conf.d/default.conf
COPY deploy/nginx/docker-chat.conf /etc/nginx/conf.d/default.conf
EXPOSE 8443
CMD ["nginx", "-g", "daemon off;"]