30 lines
838 B
Docker
30 lines
838 B
Docker
# ★ 루트 `.dockerignore` 는 **백엔드 이미지용**이라 solution/frontend·site·shared 를 통째로
|
|
# 잘라낸다. 같은 컨텍스트를 쓰는 이 이미지가 그걸 물려받으면 COPY 가 "not found" 로 죽는다.
|
|
# BuildKit 은 `<Dockerfile 경로>.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
|