This commit is contained in:
parent
880f0b311a
commit
d775214e1b
@ -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'
|
Loading…
Reference in New Issue
Block a user