部署:增加 docker-compose 与容器 nginx 配置,支持 docker 部署
This commit is contained in:
@@ -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;"]
|
||||
|
Reference in New Issue
Block a user