优化 docker html 配置 docker-compose.yml 已经配置了 volumes,多次build 后 有会报错 “max depth exceeded”,镜像变大到2.3GB, ningx 初始镜像是141.5 MB。
Signed-off-by: 云飞扬 <15678871232@qq.com>
This commit is contained in:
parent
ee3f03f1f1
commit
0ed6e9138e
|
|
@ -10,6 +10,4 @@ RUN mkdir -p /home/ruoyi/projects/ruoyi-ui
|
|||
# 指定路径
|
||||
WORKDIR /home/ruoyi/projects/ruoyi-ui
|
||||
# 复制conf文件到路径
|
||||
COPY ./conf/nginx.conf /etc/nginx/nginx.conf
|
||||
# 复制html文件到路径
|
||||
COPY ./html/dist /home/ruoyi/projects/ruoyi-ui
|
||||
COPY ./conf/nginx.conf /etc/nginx/nginx.conf
|
||||
Loading…
Reference in New Issue