更新 Dockerfiles/Dockerfile-public/Dockerfile
This commit is contained in:
@@ -32,10 +32,10 @@ RUN npm run build:public
|
||||
FROM registry-vpc.cn-chengdu.aliyuncs.com/zhixueli-prod/nginx:alpine
|
||||
|
||||
# 复制构建产物到 Nginx 目录
|
||||
COPY --from=builder --chown=nginx:nginx /app/dist /usr/share/nginx/html
|
||||
COPY --from=builder --chown=nginx:nginx /app/dist-public /usr/share/nginx/html
|
||||
|
||||
# 复制 Nginx 配置
|
||||
COPY Dockerfiles/default.conf /etc/nginx/conf.d/default.conf
|
||||
COPY Dockerfiles/Dockerfile-public/default.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# 暴露端口
|
||||
EXPOSE 80
|
||||
|
||||
Reference in New Issue
Block a user