From 1e589ba91a8fd0e53f7a4af04db16f96af61bc52 Mon Sep 17 00:00:00 2001 From: Djeex Date: Sun, 1 Jun 2025 17:27:04 +0000 Subject: [PATCH] New image based on python-alpine. Image size reduced by 2. A bit is a bit. --- Dockerfile | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 18a1668..d2bc369 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,14 @@ -FROM python:3.11-slim - -RUN apt-get update && apt-get install -y --no-install-recommends curl tzdata && rm -rf /var/lib/apt/lists/* - -RUN pip install --no-cache-dir requests pyyaml schedule +FROM python:3.11-alpine ENV TZ=Europe/Paris -RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone +RUN apk add --no-cache tzdata curl \ + && cp /usr/share/zoneinfo/$TZ /etc/localtime \ + && echo $TZ > /etc/timezone \ + && pip install --no-cache-dir requests pyyaml schedule WORKDIR /app -COPY blocklist_scheduler.py /app/blocklist_scheduler.py +COPY blocklist_scheduler.py . -RUN chmod +x /app/blocklist_scheduler.py - -ENTRYPOINT ["python3", "/app/blocklist_scheduler.py"] +ENTRYPOINT ["python3", "blocklist_scheduler.py"]