From be52bd17ea01d8c302e39ba444194de282dc4728 Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Sat, 10 Jun 2023 00:11:39 +0200 Subject: First commit --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e28354d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM python:slim-bullseye +COPY scripts /scripts +RUN \ + apt-get update && \ + apt-get install -y --no-install-recommends cron && \ + apt-get clean && \ + pip install --no-cache-dir -r /scripts/requirements.txt && \ + rm -rf /scripts/requirements.txt && \ + rm -rf /var/lib/apt/lists/* && \ + touch crontab /etc/cron.d/crontab && \ + chmod 0644 /etc/cron.d/crontab +CMD ["bash", "/scripts/entrypoint.sh"] -- cgit v1.2.3