Files
Garmin-API/Dockerfile
T
2026-04-03 18:16:48 +01:00

20 lines
512 B
Docker

FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y git build-essential && rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir garth requests
RUN git clone -b react https://github.com/cyberjunky/python-garminconnect.git /tmp/garminconnect \
&& cp -r /tmp/garminconnect/garminconnect /app/ \
&& rm -rf /tmp/garminconnect
COPY . .
EXPOSE 5000
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"]