Forward environment to cron via crontab file
This commit is contained in:
parent
58fe0314a9
commit
ef94550b64
4 changed files with 20 additions and 7 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue