Download Dockerfile from reader-1/1: direct link, hf CLI and curl.
- Browser
- Download file 549 Bytes
-
https://huggingface.co/spaces/reader-1/1/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/reader-1/1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/reader-1/1/resolve/main/Dockerfile
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"] |