Skip to content

Commit df4eebc

Browse files
authored
fix: add .env and .git exclusions to dockerignore template (#361)
Without these exclusions, docker build silently includes .env files (which typically contain credentials/API keys) and .git/ history in the container image. If pushed to a registry, secrets are exposed.
1 parent be9b99b commit df4eebc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/assets/container/python/dockerignore.template

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ build/
1515
.coverage
1616
htmlcov/
1717

18+
# Secrets and environment files
19+
.env
20+
.env.*
21+
22+
# Version control
23+
.git/
24+
1825
# AgentCore build artifacts
1926
.agentcore/artifacts/
2027
*.zip

0 commit comments

Comments
 (0)