Update docker-compose.yml

Add [ -d /app/.git ] || git clone ...  Control
This commit is contained in:
2025-04-14 08:47:39 +02:00
committed by GitHub
parent 39e0a76feb
commit a31e4d7954

View File

@@ -3,15 +3,16 @@ version: "3.9"
services:
quartapp:
image: python:3.10-slim
container_name: herselquart
container_name: quartapp
working_dir: /app
ports:
- "127.0.0.1:5000:5000"
restart: always
command: >
sh -c "
apt-get update &&
apt-get install -y git &&
git clone https://github.com/BluLupo/hersel.it.git /app &&
[ -d /app/.git ] || git clone https://github.com/BluLupo/hersel.it.git /app &&
pip install --no-cache-dir -r requirements.txt &&
hypercorn -c hypercorn_config.toml app:app
"