FROM python:3.7.14-alpine3.16 COPY 1.patch 2.patch /opt/ # Récupération de Rawdog RUN apk update \ && apk add --no-cache git patch \ && mkdir /opt/rawdog \ && git clone https://github.com/echarlie/rawdog-py3.git /opt/rawdog \ && cd /opt/rawdog \ && mv /opt/1.patch . \ && mv /opt/2.patch . \ && patch -p1 -i 1.patch \ && patch -p1 -i 2.patch \ && pip install --no-cache-dir feedparser \ && python3 setup.py install \ && mkdir -p /srv/http/veille COPY public/ /srv/http/veille/ WORKDIR /opt/rawdog VOLUME /srv/http/veille VOLUME /root/.rawdog VOLUME /etc/periodic/hourly ENTRYPOINT ["crond", "-f", "-l", "8"]