updated Dockerfile to use external cron file

This commit is contained in:
Samuel Philipp 2019-11-10 19:42:25 +01:00
parent 8da01bdd76
commit db34338d9a

View file

@ -5,12 +5,8 @@ RUN pip3 install feed2toot
RUN apt-get update && apt-get -y install cron
COPY cron /etc/cron.d/feed2toot
RUN chmod 0644 /etc/cron.d/feed2toot
RUN crontab /etc/cron.d/feed2toot
WORKDIR feed2toot
CMD ["cron", "-f"]
COPY cron /feed2toot/cron
CMD crontab /feed2toot/cron && cron -f