优化docker体积与启动流程

This commit is contained in:
ngfchl
2022-09-19 19:57:21 +08:00
parent 2f32f5728e
commit 2e34631626
2 changed files with 11 additions and 14 deletions

View File

@@ -38,9 +38,7 @@ ADD ./start.sh /var/www/html
RUN chmod +x /var/www/html/start.sh
# 更换USTC源,并安装gcc,git
RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list; \
apt update && yes|apt install git; \
apt-get autoclean && rm -rf /var/lib/apt/lists/*
RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list && apt update && yes|apt install gcc git && apt-get autoclean
VOLUME ["/var/www/html/ptools"]