using cron in docker
This commit is contained in:
parent
95370fec3a
commit
d5f34b710e
|
@ -6,9 +6,16 @@ ENV PATH="/root/.local/bin:${PATH}"
|
||||||
|
|
||||||
WORKDIR /srv
|
WORKDIR /srv
|
||||||
|
|
||||||
RUN apt-get update -qq
|
RUN apt-get update -qq && \
|
||||||
|
apt-get install -y cron
|
||||||
|
|
||||||
RUN pip install --default-timeout=200 --upgrade pip==22.3.1 && \
|
RUN pip install --default-timeout=200 --upgrade pip==22.3.1 && \
|
||||||
pip install feed2toot==0.17 && \
|
pip install feed2toot==0.17 && \
|
||||||
pip install wheel==0.38.4
|
pip install wheel==0.38.4
|
||||||
|
|
||||||
|
RUN echo "@hourly feed2toot -c /data/feed2toot.ini \n" > /etc/cron.d/feed2toot && \
|
||||||
|
crontab /etc/cron.d/feed2toot && \
|
||||||
|
touch /var/log/feed2toot.log
|
||||||
|
|
||||||
|
CMD cron && tail -f /var/log/feed2toot.log
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue