mirror of
https://github.com/mykitserver/feed2toot-docker.git
synced 2025-12-08 09:48:51 +01:00
updated Dockerfile to use external cron file
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user