From d8ebdc5ca036d0a95a52fc8e4ff72a80a55b0fbb Mon Sep 17 00:00:00 2001 From: Kenny Yang Date: Thu, 29 May 2025 01:58:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3Dockerfile=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E9=93=BE=E6=8E=A5=E4=B8=BA=E7=89=B9=E5=AE=9A=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E7=9A=84=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原脚本中下载的Dockerfile是通用文件,现改为分别下载PHP和PostgreSQL服务的专用Dockerfile,以支持不同服务的容器化部署需求。 --- local/init_env.sh | 3 ++- vps/init_env.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/local/init_env.sh b/local/init_env.sh index af6282f..90f83ef 100644 --- a/local/init_env.sh +++ b/local/init_env.sh @@ -79,6 +79,7 @@ sed -i "s/appendonly no/appendonly yes/g" /home/app/redis/conf/redis.conf # 下载Docker Compose文件和Dockerfile wget -O /home/app/docker-compose.yml https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/local/docker-compose.yml -wget -O /home/app/Dockerfile https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/local/Dockerfile +wget -O /home/app/Dockerfile https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/local/Dockerfile.php +wget -O /home/app/Dockerfile https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/local/Dockerfile.postgres echo "Initialization script completed successfully." diff --git a/vps/init_env.sh b/vps/init_env.sh index a5d57f1..15aa3a4 100644 --- a/vps/init_env.sh +++ b/vps/init_env.sh @@ -57,6 +57,7 @@ sed -i "s/appendonly no/appendonly yes/g" /home/app/redis/conf/redis.conf # 下载Docker Compose文件和Dockerfile wget -O /home/app/docker-compose.yml https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/vps/docker-compose.yml -wget -O /home/app/Dockerfile https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/vps/Dockerfile +wget -O /home/app/Dockerfile https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/vps/Dockerfile.php +wget -O /home/app/Dockerfile https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/vps/Dockerfile.postgres echo "Initialization script completed successfully."