Exclude env files from container image (add .envs/ to .dockerignore) (#4476)

Currently, environment files are copied to container image during build.

Environment files contains secrets and should not be in container images.
Per [discussion 4474](https://github.com/cookiecutter/cookiecutter-django/discussions/4474), this is likely a bug.

This change excludes all environment files from being copied to container image.

Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
This commit is contained in:
zhaoruibing 2023-08-14 03:22:25 -07:00 committed by GitHub
parent f89ff79aee
commit bf44d152ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,3 +9,4 @@
.travis.yml .travis.yml
venv venv
.git .git
.envs/