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