feat: add start script to pull latest git repository and run Flask application in Docker container

This commit is contained in:
Manuel Weiser 2024-09-05 09:26:42 +02:00
parent cf6a303e56
commit 6755f1ddf9
2 changed files with 8 additions and 0 deletions

View File

@ -7,3 +7,4 @@ services:
- "3004:3004"
volumes:
- /home/manuel/docker/MikaApp/instance:/usr/src/app/instance
command: ["./start.sh"]

7
start.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
# Pull the latest changes from the repository
git pull https://gitlab.fire-devils.org/ManuelW/MikaList.git
# Start the Flask application
flask run --host=0.0.0.0 --port=3004