Add Docker support for FoodsharingSiegen project

Introduced Docker setup, including `docker-compose.yml`, `dockerfile.server`, and related Python helper scripts (`image-create.py`, `image-push.py`, `publish-project.py`, `publish-aio.py`) for building, managing, and deploying Docker images. Updated `.gitignore` to exclude published files, and renamed a field label in the Blazor component for better clarity.
This commit is contained in:
Andre Beging
2025-03-28 16:29:43 +01:00
parent 3d92833199
commit 859b0c3712
8 changed files with 206 additions and 2 deletions

15
Docker/publish-aio.py Normal file
View File

@@ -0,0 +1,15 @@
import subprocess
import sys
# List of scripts to run in order
scripts = ['publish-project.py', 'image-create.py', 'image-push.py']
for script in scripts:
print(f"Executing {script}...")
try:
# Run the script using the current Python interpreter
subprocess.run([sys.executable, script], check=True)
print(f"{script} executed successfully.\n")
except subprocess.CalledProcessError as error:
print(f"Error: {script} failed with exit code {error.returncode}.")
break