File size: 475 Bytes
ca404e5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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"]