diff --git a/Dockerfile b/Dockerfile index 3a27cb1..6de6c4d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,4 +7,4 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . . EXPOSE 5000 -CMD ["python", "app.py"] \ No newline at end of file +CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"] \ No newline at end of file diff --git a/app.py b/app.py index 1c1fd9f..830347b 100644 --- a/app.py +++ b/app.py @@ -49,7 +49,7 @@ def get_garmin_data(): # --- Return test data if in test mode --- if TEST_MODE: print("⚡ Test mode enabled, returning hardcoded data") - return {"total_km": 70, "goal_km": 100, "percent": 12.6, "status": "success"} + return {"total_km": 70, "goal_km": 235, "percent": 12.6, "status": "success"} # --- RETURN CACHED DATA --- if cached_data and (now - last_fetch_time < CACHE_TTL): diff --git a/requirements.txt b/requirements.txt index b834994..e75c792 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ flask garminconnect requests +gunicorn \ No newline at end of file