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