将nginx配置文件正确放入容器

This commit is contained in:
carry 2025-02-20 02:48:45 +08:00
parent 539c9c7453
commit 20283e17b9

View File

@ -24,7 +24,7 @@ FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html COPY --from=build-stage /app/dist /usr/share/nginx/html
# 复制Nginx配置文件 # 复制Nginx配置文件
COPY nginx.conf /etc/nginx/conf.d/default.conf COPY nginx.conf /etc/nginx/nginx.conf
# 暴露80端口 # 暴露80端口
EXPOSE 80 EXPOSE 80