The COPY . . lines in compose/local/django/Dockerfile and compose/production/django/Dockerfile copy everything in the local directory, including, for example, extra database files left in the backups folder that aren't needed for the local deploy. There are advantages to this (automatically adding files needed) but as more and more files are added locally this may be more difficult to maintain. The easiest to solution is to include a .dockerignore file, but a more robust would be to specify what gets copied like: https://stackoverflow.com/questions/43747776/copy-with-docker-but-with-exclusion
The
COPY . .
lines incompose/local/django/Dockerfile
andcompose/production/django/Dockerfile
copy everything in the local directory, including, for example, extra database files left in thebackups
folder that aren't needed for the local deploy. There are advantages to this (automatically adding files needed) but as more and more files are added locally this may be more difficult to maintain. The easiest to solution is to include a.dockerignore
file, but a more robust would be to specify what gets copied like: https://stackoverflow.com/questions/43747776/copy-with-docker-but-with-exclusion