diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 12 |
1 files changed, 12 insertions, 0 deletions
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"] |