Created autocreate of .dockerignore via Makefile

This commit is contained in:
Kevin Veen-Birkenbach 2025-07-16 13:30:02 +02:00
parent 1a649568ce
commit 7aed3dd8c2
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
2 changed files with 14 additions and 1 deletions

8
.dockerignore Normal file
View File

@ -0,0 +1,8 @@
site.retry
*__pycache__
venv
*.log
*.bak
*tree.json
roles/list.json
.git

View File

@ -29,7 +29,12 @@ tree:
@echo Generating Tree @echo Generating Tree
python3 main.py build tree -D 2 --no-signal python3 main.py build tree -D 2 --no-signal
build: clean dockerignore:
@echo Create dockerignore
cat .gitignore > .dockerignore
echo ".git" >> .dockerignore
build: clean dockerignore
@echo "🔧 Generating users defaults → $(USERS_OUT)" @echo "🔧 Generating users defaults → $(USERS_OUT)"
python3 $(USERS_SCRIPT) \ python3 $(USERS_SCRIPT) \
--roles-dir $(ROLES_DIR) \ --roles-dir $(ROLES_DIR) \