-
-
Notifications
You must be signed in to change notification settings - Fork 117
Expand file tree
/
Copy path.dockerignore
More file actions
19 lines (18 loc) · 818 Bytes
/
Copy path.dockerignore
File metadata and controls
19 lines (18 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Both compose files build with `context: ..` (the repo root), so this is the
# .dockerignore that actually applies — the per-service web/.dockerignore is
# inert. Without these excludes, `COPY web/ ./` and `COPY controller/ ./` drag
# the host's stale node_modules into the image, merging on top of the fresh
# `npm ci` install and corrupting it (e.g. a Tailwind v3/v4 hybrid).
**/node_modules
**/.next
.git
.backups
state
# Dev-only env files MUST NOT leak into the prod web image — Next.js bakes
# NEXT_PUBLIC_* values into the static client bundle at build time, so a
# stray web/.env.local with NEXT_PUBLIC_API_URL=http://localhost:7701 would
# override the same-origin default the prod image is meant to ship. Keep
# .env.example whitelisted so docs/templates still ship.
**/.env
**/.env.*
!**/.env.example