Forward environment to cron via crontab file

This commit is contained in:
stratholme 2020-08-14 23:48:12 +02:00
parent 58fe0314a9
commit ef94550b64
4 changed files with 20 additions and 7 deletions

View file

@ -6,9 +6,7 @@ RUN \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD files/main.py /main.py
ADD files/entrypoint.sh /entrypoint.sh
ADD files/crontab.tpl /crontab.tpl
ADD files/crontab /etc/cron.d/assembly-cron
RUN chmod 0644 /etc/cron.d/assembly-cron
RUN crontab /etc/cron.d/assembly-cron
CMD ["cron", "-f"]
ENTRYPOINT ["/entrypoint.sh"]