Update ignore rules and sync .dockerignore with .gitignore during build

This commit is contained in:
Eduardo Silva
2025-12-28 10:27:10 -03:00
parent 7c5cbe51be
commit 9e8bc539fe
2 changed files with 39 additions and 0 deletions

38
.dockerignore Normal file
View File

@@ -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

View File

@@ -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."