diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..373f5cc --- /dev/null +++ b/.dockerignore @@ -0,0 +1,38 @@ +build_and_push_multi.sh +*.code-workspace +containers/*/.venv +db.sqlite3 +db.sqlite3-journal +*.egg +*.egg-info/ +.eggs/ +.env +env/ +ENV/ +env.bak/ +.history +.idea +.idea/ +.idea_modules/ +*.iml +.installed.cfg +*.ipr +.ipynb_checkpoints +*.iws +.junie/ +local_settings.py +*.log +media/ +*.pot +*.pyc +*__pycache__/ +__pycache__/ +*.pyd +*.pyo +.venv +/.venv +venv/ +venv.bak/ +.vscode/ +/.vscode +wireguard_webadmin/production_settings.py \ No newline at end of file diff --git a/build_and_push.sh b/build_and_push.sh index acd7f29..162d169 100755 --- a/build_and_push.sh +++ b/build_and_push.sh @@ -11,6 +11,7 @@ IMAGES=( build_images() { echo "==========================================================================================" echo "========== Starting the build of the images..." + cat .gitignore > .dockerignore docker compose -f docker-compose-build.yml build if [ $? -eq 0 ]; then echo "Build completed successfully."