updated Dockerfile to use external cron file
This commit is contained in:
parent
8da01bdd76
commit
db34338d9a
1 changed files with 3 additions and 7 deletions
10
Dockerfile
10
Dockerfile
|
@ -5,12 +5,8 @@ RUN pip3 install feed2toot
|
||||||
|
|
||||||
RUN apt-get update && apt-get -y install cron
|
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
|
WORKDIR feed2toot
|
||||||
|
|
||||||
CMD ["cron", "-f"]
|
COPY cron /feed2toot/cron
|
||||||
|
|
||||||
|
CMD crontab /feed2toot/cron && cron -f
|
||||||
|
|
Reference in a new issue