feat: add start script to pull latest git repository and run Flask application in Docker container
This commit is contained in:
@ -7,3 +7,4 @@ services:
|
|||||||
- "3004:3004"
|
- "3004:3004"
|
||||||
volumes:
|
volumes:
|
||||||
- /home/manuel/docker/MikaApp/instance:/usr/src/app/instance
|
- /home/manuel/docker/MikaApp/instance:/usr/src/app/instance
|
||||||
|
command: ["./start.sh"]
|
||||||
|
7
start.sh
Normal file
7
start.sh
Normal 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
|
Reference in New Issue
Block a user