added test mode and adapted for docker

This commit is contained in:
ash
2026-03-31 08:29:24 +01:00
parent b87505250a
commit 5bf6e9083e
3 changed files with 16 additions and 11 deletions
+4 -7
View File
@@ -2,17 +2,14 @@ FROM python:3.11-slim
WORKDIR /app
# Install dependencies
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
# Copy app
COPY app.py .
COPY logo.bin .
# Expose port
EXPOSE 5000
# Run app
RUN pip install gunicorn
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"]