mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
优化docker体积与启动流程
This commit is contained in:
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user