FROM python:3.12-slim | |
RUN apt-get update && apt-get install -y git | |
ADD https://timeapi.io/api/Time/current/zone?timeZone=Europe/Amsterdam v.json | |
RUN --mount=type=secret,id=GIT_REPO,mode=0444,required=true \ | |
git clone $(cat /run/secrets/GIT_REPO) /app && \ | |
chmod -R 777 /app | |
WORKDIR /app | |
RUN if [ -f packages.txt ]; then \ | |
apt-get install -y $(cat packages.txt); \ | |
fi | |
RUN pip install --no-cache-dir -r requirements.txt | |
ENTRYPOINT ["/app/entrypoint.sh"] | |