20 lines
373 B
Docker
20 lines
373 B
Docker
FROM python:3-alpine
|
|
|
|
RUN apk add --no-cache ca-certificates tzdata
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN python -m pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY entrypoint.py /usr/local/bin/
|
|
RUN chmod +x /usr/local/bin/entrypoint.py
|
|
|
|
ENV TZ=Europe/Brussels
|
|
ENV URL=""
|
|
ENV CRON=""
|
|
ENV TIMEOUT=30
|
|
ENV ON_STARTUP=true
|
|
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint.py"]
|