veille/Dockerfile

26 lines
596 B
Docker

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 -p /opt/rawdog/bin \
&& git clone https://github.com/echarlie/rawdog-py3.git /opt/rawdog/bin \
&& cd /opt/rawdog/bin \
&& 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
COPY . /opt/rawdog
COPY ./crontabs /etc/crontabs/root
WORKDIR /opt/rawdog
VOLUME /opt/rawdog/public
ENTRYPOINT ["/opt/rawdog/startup.sh"]