From e946d6e614cad1afc07bf3cae60b89f5e01e3e13 Mon Sep 17 00:00:00 2001 From: syskiller Date: Tue, 24 Nov 2026 07:18:13 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=B0=ED=8F=AC=20=EC=8A=A4=ED=81=AC?= =?UTF-8?q?=EB=A6=BD=ED=8A=B8=EA=B0=80=20=EC=84=9C=EB=B2=84=20compose=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=EC=9D=84=20=EB=8D=AE=EC=96=B4=EC=93=B0?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EA=B2=8C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 서버의 docker-compose.yaml은 보안 패치한 nginx 이미지를 쓰고 있어서 저장소 사본(nginx:stable-alpine)으로 덮어쓰면 다음 재시작 때 옛 이미지로 돌아갑니다. nginx-static.conf만 복사하고 compose는 다를 때 알려 주기만 합니다. --- scripts/deploy-site.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/deploy-site.sh b/scripts/deploy-site.sh index ccb44f5..f4806e6 100644 --- a/scripts/deploy-site.sh +++ b/scripts/deploy-site.sh @@ -22,7 +22,9 @@ cp source/third-party/fusion-pixel-licenses/* site/fusion-pixel-licenses/ cp source/LICENSE site/LICENSE.txt cp source/NOTICE.md site/NOTICE.txt cp source/third-party/Galmuri-OFL.txt site/Galmuri-OFL.txt -cp source/docker-compose.yaml source/nginx-static.conf . +cp source/nginx-static.conf . +# docker-compose.yaml은 서버 쪽 사본을 그대로 쓴다(보안 패치한 nginx 이미지를 가리킴). 저장소 사본으로 덮어쓰지 않는다. +cmp -s source/docker-compose.yaml docker-compose.yaml || echo "참고: 저장소 docker-compose.yaml과 서버 사본이 다릅니다. 서버 사본을 유지합니다." printf 'ok\n' > site/health.txt sha256sum site/index.html > deploy-sha256.txt chmod -R a+rX site