Spaces:
Running
Running
FROM python:3.10-slim-bullseye | |
ADD https://timeapi.io/api/Time/current/zone?timeZone=Europe/Amsterdam version.json | |
RUN apt-get update && apt-get install -y git | |
RUN --mount=type=secret,id=GIT_REPO,mode=0444,required=true git clone $(cat /run/secrets/GIT_REPO) /code | |
WORKDIR /code | |
RUN chmod -R 777 /code | |
RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
RUN chmod +x /code/entrypoint.sh | |
ENTRYPOINT ["/code/entrypoint.sh"] |