From 279ef12a0bab95e08a722d074dabb73faf724148 Mon Sep 17 00:00:00 2001 From: Unshift Date: Fri, 26 Sep 2025 11:43:08 +0800 Subject: [PATCH] fix: ap7 --- docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index eb3a9ba..cf68d16 100755 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -4,8 +4,8 @@ FROM registry.cn-shanghai.aliyuncs.com/gong92-socl/debian-nginx-php114-74 # 要想复制其他文件 就必须把dockerfile和其他文件放一起 # 这里复制了这个项目的所有 -COPY . /var/www -RUN sed -i's/http:\/\/mirrors.tuna.tsinghua.edu.cn\/debian/http:\/\/deb.debian.org\/debian/g' /etc/apt/sources.list \ +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