From f9cccb75d19c1c8958c9ebd5b7ca5c76c7781b53 Mon Sep 17 00:00:00 2001 From: Xanders25 Date: Wed, 25 Dec 2024 17:50:48 +0200 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20docker-compose.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4ccb866..a16aff3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,6 +8,15 @@ services: ports: - "5000:5000" volumes: - - .:/app + - /home/1:/app environment: - FLASK_ENV=development + command: > + sh -c " + if [ ! -d /home/1/test_compos ]; then + git clone https://git.xander.cx.ua/Xanders25/test_compos.git /home/1/test_compos; + else + cd /home/1/test_compos && git pull; + fi && + python /app/app.py + "