# Build context for Docker-AIO/Dockerfile, which builds from the PROJECT ROOT so
# it can reach both "API Server/" and "Web App/". Docker reads .dockerignore only
# from the context root, so the per-directory ignore files under "API Server/"
# and "Web App/" do NOT apply to that build — this file is what keeps it small.
# Without it the daemon receives ~3.6 GB (Phone App/build alone is 3 GB).
#
# It is an allow-list: everything is excluded, then the exact paths the AIO
# Dockerfile copies are added back. If you add a COPY to that Dockerfile, add
# its path here too or the build fails with "no source files were specified".
*

# --- Stage 1: the Go API Server ---------------------------------------------
!API Server/go.mod
!API Server/go.sum
!API Server/cmd
!API Server/internal

# --- Stage 2: the Vue Web App ------------------------------------------------
!Web App/web

# ...but never its dependencies; npm ci reinstalls them inside the image.
Web App/web/node_modules

# Secrets and local artifacts, re-excluded in case a rule above lets them in.
**/.env
**/*.log
