Ma façon de faire de la veille technologique sur les outils utilisés sur certains serveurs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

30 lines
699 B

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"]