HN_Masto_Bridge/Dockerfile

22 lines
527 B
Docker
Raw Normal View History

2022-11-27 16:50:12 +00:00
FROM python:3.10.5-slim-bullseye
ENV LANG C.UTF-8
ENV PYTHONPATH $PYTHONPATH:/srv
ENV PATH="/root/.local/bin:${PATH}"
WORKDIR /srv
2022-11-27 18:31:34 +00:00
RUN apt-get update -qq && \
apt-get install -y cron
2022-11-27 16:50:12 +00:00
RUN pip install --default-timeout=200 --upgrade pip==22.3.1 && \
pip install feed2toot==0.17 && \
pip install wheel==0.38.4
2022-11-27 18:31:34 +00:00
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