Download Dockerfile from Suchan87/teldrive: direct link, hf CLI and curl.
- Browser
- Download file 885 Bytes
-
https://huggingface.co/spaces/Suchan87/teldrive/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Suchan87/teldrive/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Suchan87/teldrive/resolve/main/Dockerfile
885 Bytes
| FROM ubuntu:latest | |
| RUN apt-get update && \ | |
| apt-get install -y ca-certificates wget tar curl unzip | |
| WORKDIR /app | |
| COPY . . | |
| RUN chmod -R 777 /app | |
| ## Rclone | |
| RUN curl https://rclone.org/install.sh | bash && rclone version | |
| RUN --mount=type=secret,id=gist_rclone,mode=0444,required=true \ | |
| wget $(cat /run/secrets/gist_rclone) -O /app/rclone.conf && \ | |
| rclone config show --config /app/rclone.conf | |
| RUN chmod a+x /app/rclone_copy_loop.sh | |
| ## Teldrive | |
| RUN --mount=type=secret,id=gist_teldrive,mode=0444,required=true \ | |
| wget https://github.com/divyam234/teldrive/releases/latest/download/teldrive_linux_amd64.tar.gz -O /app/teldrive.tar.gz && \ | |
| tar xvf /app/teldrive.tar.gz -C /app && \ | |
| wget $(cat /run/secrets/gist_teldrive) -O /app/teldrive.env && \ | |
| chmod a+x /app/teldrive && chmod 777 /app/teldrive.env | |
| ## Start | |
| RUN chmod a+x /app/start.sh | |
| CMD ["./start.sh"] |