File size: 549 Bytes
292e468 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
FROM hectorqin/reader:latest
RUN apk update && \
apk add --no-cache python3 python3-dev py3-pip curl libxml2-dev libxslt-dev gcc musl-dev && \
rm -rf /var/cache/apk/*
RUN mkdir -p /logs /storage /file-uploads /data
RUN chmod a+w /logs /storage /file-uploads /data
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN pip install --upgrade pip
RUN pip install --no-cache-dir requests webdavclient3
COPY sync_data.sh /sync_data.sh
RUN chmod +x /sync_data.sh
CMD ["/bin/sh", "/sync_data.sh"] |