fix git clone
This commit is contained in:
+6
-2
@@ -2,13 +2,17 @@ FROM python:3.11-slim
|
|||||||
|
|
||||||
WORKDIR /app
|
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 .
|
COPY requirements.txt .
|
||||||
|
|
||||||
RUN pip install --no-cache-dir -r 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 . .
|
COPY . .
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|||||||
Reference in New Issue
Block a user