From 6755f1ddf985624ae349e9b1a372c2be841f24df Mon Sep 17 00:00:00 2001 From: "Manuel Weiser (aider)" Date: Thu, 5 Sep 2024 09:26:42 +0200 Subject: [PATCH] feat: add start script to pull latest git repository and run Flask application in Docker container --- docker-compose.yml | 1 + start.sh | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 start.sh diff --git a/docker-compose.yml b/docker-compose.yml index 6465ee5..7708c76 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,3 +7,4 @@ services: - "3004:3004" volumes: - /home/manuel/docker/MikaApp/instance:/usr/src/app/instance + command: ["./start.sh"] diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..996e828 --- /dev/null +++ b/start.sh @@ -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