forked from DFXswiss/app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.dockerignore
More file actions
26 lines (26 loc) · 1.22 KB
/
Copy path.dockerignore
File metadata and controls
26 lines (26 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Applies to every image built from this repository, not just the e2e-stack ones. Anything listed
# here disappears from the build context of Dockerfile.handbook too — which is how an earlier
# version of this file, excluding e2e/screenshots, broke the handbook build: that image copies the
# screenshot baselines in. Check the other Dockerfiles before adding an entry.
node_modules
e2e-stack/node_modules
.git
build
dist
test-results
playwright-report
*.log
# CI checks the API repository out into the workspace as api-repo/ before building the frontend
# image from this directory. Without this line the whole of it travels to the Docker daemon as
# build context on every image build.
api-repo
# Gitignore does not protect the Docker build context: context is whatever is on disk, not what
# Git tracks. An untracked or gitignored .env still reaches the daemon and lands in builder
# layers — and CRA (frontend / frontend-widget) bakes any REACT_APP_* values it finds in a .env
# file into the JS bundle at build time. e2e-stack/scripts/up.sh also writes
# e2e-stack/.env.generated with build-time-resolved values before `compose build frontend`; that
# file must stay out of the context too.
.env
**/.env
**/.env.*
e2e-stack/.env.generated