rd / Dockerfile
mc6's picture
Rename dockerfile to Dockerfile
9513f4d verified
raw
history blame contribute delete
549 Bytes
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"]