diff --git a/Dockerfile b/Dockerfile index 040849a..ca1ddba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,8 +15,8 @@ RUN pnpm run build FROM nginx:alpine WORKDIR /data # 替换掉Nginx默认配置 -RUN rm /etc/nginx/conf.d/web.conf -ADD docker/web.conf /etc/nginx/conf.d/default.conf +RUN rm /etc/nginx/conf.d/default.conf +COPY --from=build-stage /front/docker/web.conf /etc/nginx/conf.d/default.conf COPY --from=build-stage /front/dist/ ./ # 复制编译后的文件到容器内 RUN /bin/sh -c 'echo init ok' \ No newline at end of file