2022-09-29 22:32:19 +00:00
|
|
|
FROM python:3.7.14-alpine3.16
|
|
|
|
|
|
|
|
COPY 1.patch 2.patch /opt/
|
|
|
|
|
|
|
|
# Récupération de Rawdog
|
|
|
|
RUN apk update \
|
2022-10-09 20:05:19 +00:00
|
|
|
&& apk add --no-cache git patch tzdata \
|
2022-10-07 16:12:10 +00:00
|
|
|
&& mkdir -p /opt/rawdog/bin \
|
|
|
|
&& git clone https://github.com/echarlie/rawdog-py3.git /opt/rawdog/bin \
|
|
|
|
&& cd /opt/rawdog/bin \
|
2022-09-29 22:32:19 +00:00
|
|
|
&& mv /opt/1.patch . \
|
|
|
|
&& mv /opt/2.patch . \
|
|
|
|
&& patch -p1 -i 1.patch \
|
|
|
|
&& patch -p1 -i 2.patch \
|
|
|
|
&& pip install --no-cache-dir feedparser \
|
2022-10-07 16:12:10 +00:00
|
|
|
&& python3 setup.py install
|
2022-09-29 22:32:19 +00:00
|
|
|
|
2022-10-09 20:05:19 +00:00
|
|
|
ENV TZ=Europe/Paris
|
|
|
|
|
2022-10-07 16:12:10 +00:00
|
|
|
COPY . /opt/rawdog
|
|
|
|
COPY ./crontabs /etc/crontabs/root
|
2022-09-29 22:32:19 +00:00
|
|
|
|
|
|
|
WORKDIR /opt/rawdog
|
|
|
|
|
2022-10-07 16:12:10 +00:00
|
|
|
VOLUME /opt/rawdog/public
|
|
|
|
|
2022-10-10 19:27:12 +00:00
|
|
|
ENTRYPOINT ["/opt/rawdog/startup"]
|