Skip to content

Commit f43b8dc

Browse files
committed
🔒 fix: exclude .env from Docker context and git
Dockerfile runs COPY . . and Docker does not read .gitignore. This repo takes config via runtime env vars and has no .env today, but nothing prevented one from being created (e.g. for local compose use), committed, or baked into an image layer. Cheap insurance on both fronts.
1 parent 890679a commit f43b8dc

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎.dockerignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ node_modules
44
npm-debug.log*
55
test-results
66
traces-*.json
7+
.env
8+
.env.*

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules/
22
test-results/
33
traces-*.json
4+
.env
5+
.env.*

0 commit comments

Comments
 (0)