aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: e28354dd4f1427956f9446b459451b4c114b01c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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"]