🐳dockerfile
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
coward 2024-08-20 11:14:11 +08:00
parent 880f0b311a
commit d775214e1b

View File

@ -15,8 +15,8 @@ RUN pnpm run build
FROM nginx:alpine FROM nginx:alpine
WORKDIR /data WORKDIR /data
# 替换掉Nginx默认配置 # 替换掉Nginx默认配置
RUN rm /etc/nginx/conf.d/web.conf RUN rm /etc/nginx/conf.d/default.conf
ADD docker/web.conf /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/ ./ COPY --from=build-stage /front/dist/ ./
# 复制编译后的文件到容器内 # 复制编译后的文件到容器内
RUN /bin/sh -c 'echo init ok' RUN /bin/sh -c 'echo init ok'