diff --git a/docker/Dockerfile b/docker/Dockerfile index e2f9faf..d73c0d6 100755 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -5,10 +5,7 @@ FROM registry.cn-shanghai.aliyuncs.com/gong92-socl/debian-nginx-php114-74 # 这里复制了这个项目的所有 COPY . /var/www -RUN if [ -f /etc/apt/sources.list ]; then sed -i's/http:\/\/mirrors.tuna.tsinghua.edu.cn\/debian/http:\/\/deb.debian.org\/debian/g' /etc/apt/sources.list; else echo "sources.list not found"; fi \ - && apt-get update && apt-get install -y tree \ - && ls -al /var/www \ - && tree -L 2 /var/www +RUN ls -al /var/www # CMD不同于RUN,CMD用于指定在容器启动时所要执行的命令,而RUN用于指定镜像构建时所要执行的命令