fix git clone

This commit is contained in:
ash
2026-04-03 18:16:48 +01:00
parent cc5f4c6435
commit 688801c567
+6 -2
View File
@@ -2,13 +2,17 @@ FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
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 git+https://github.com/cyberjunky/python-garminconnect.git@react
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