From 377ba19033bbc52b3d94cbace6571ea403066588 Mon Sep 17 00:00:00 2001 From: ash Date: Tue, 31 Mar 2026 08:37:11 +0100 Subject: [PATCH] move url to compose --- Dockerfile | 6 +----- docker-compose.yml | 5 ++--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9029287..76fb03c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,14 +2,10 @@ FROM python:3.11-slim WORKDIR /app -RUN apt-get update && apt-get install -y git - -RUN git clone https://git.marlow.quest/ash/Garmin-API.git - COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt EXPOSE 5000 RUN pip install gunicorn -CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"] +CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 79fc2e8..a0514d3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,11 +1,10 @@ services: garmin-api: build: - context: . - dockerfile: Dockerfile + context: https://git.marlow.quest/ash/Garmin-API.git container_name: garmin-api ports: - "5000:5000" env_file: - - .env + - .env restart: unless-stopped \ No newline at end of file