From c8a0c0de67680451942e16f81caa06853fc3fd94 Mon Sep 17 00:00:00 2001 From: phoenix <1797318+phoenixxie0@users.noreply.github.com> Date: Tue, 23 Nov 2021 18:32:22 +0800 Subject: [PATCH] fix nginx can not run without /run/nginx (#944) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit alpine3.12 和 alpine3.14 兼容性问题 --- docker/docker-entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index e393fcf1..db3b7474 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -6,6 +6,7 @@ link_shell echo -e "======================1. 检测配置文件========================\n" make_dir /etc/nginx/conf.d +make_dir /run/nginx cp -fv $nginx_conf /etc/nginx/nginx.conf cp -fv $nginx_app_conf /etc/nginx/conf.d/front.conf pm2 l &>/dev/null