From df6c9bbb54bdc9debc2be1404d440cc1d11e9c42 Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Tue, 1 Sep 2026 11:46:58 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20deploy:=20=ED=94=84=EB=A1=A0=ED=8A=B8?= =?UTF-8?q?=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=A0=84=EC=9A=A9=20dockerign?= =?UTF-8?q?ore=20=E2=80=94=20=EB=A3=A8=ED=8A=B8=20=EA=B2=83=EC=9D=80=20?= =?UTF-8?q?=EB=B0=B1=EC=97=94=EB=93=9C=EC=9A=A9=EC=9D=B4=EB=9D=BC=20?= =?UTF-8?q?=EC=86=8C=EC=8A=A4=EB=A5=BC=20=EC=9E=98=EB=9D=BC=EB=82=B8?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/Dockerfile.dockerignore | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 nginx/Dockerfile.dockerignore diff --git a/nginx/Dockerfile.dockerignore b/nginx/Dockerfile.dockerignore new file mode 100644 index 0000000..413a3ee --- /dev/null +++ b/nginx/Dockerfile.dockerignore @@ -0,0 +1,29 @@ +# ★ 루트 `.dockerignore` 는 **백엔드 이미지용**이라 solution/frontend·site·shared 를 통째로 +# 잘라낸다. 같은 컨텍스트를 쓰는 이 이미지가 그걸 물려받으면 COPY 가 "not found" 로 죽는다. +# BuildKit 은 `.dockerignore` 를 먼저 보므로 여기서 따로 잡는다. +.git/ +node_modules/ +**/node_modules/ +**/dist/ +**/.vite/ + +# 파이썬 백엔드는 이 이미지에 들어갈 이유가 없다. +solution/backend/ +postgres-init/ +**/__pycache__/ +*.pyc +**/.pytest_cache/ +.venv/ +**/.venv/ + +# 발행 산출물은 볼륨에서 온다. 이미지에 구우면 사이트가 늘 때마다 이미지가 붓는다. +solution/site/out/ +solution/site/payloads/ + +docs/ +**/*.md + +# 시크릿 — 이미지에 굽지 않는다. VITE_* 는 build args 로 준다. +.env +.env.* +!.env.example