31 lines
699 B
Docker
31 lines
699 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 tzdata \
|
|
&& 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
|
|
|
|
ENV TZ=Europe/Paris
|
|
|
|
COPY . /opt/rawdog
|
|
COPY ./crontabs /etc/crontabs/root
|
|
|
|
RUN chown root:root /etc/crontabs/root && \
|
|
chmod 600 /etc/crontabs/root
|
|
|
|
WORKDIR /opt/rawdog
|
|
|
|
VOLUME /opt/rawdog/public
|
|
|
|
ENTRYPOINT ["/opt/rawdog/startup"]
|