FROM python:slim-bullseye COPY src /scripts # hadolint ignore=DL3008 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"]