Download Dockerfile from mmnsrti/teldrive: direct link, hf CLI and curl.
- Browser
- Download file 500 Bytes
-
https://huggingface.co/spaces/mmnsrti/teldrive/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mmnsrti/teldrive/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mmnsrti/teldrive/resolve/main/Dockerfile
500 Bytes
| # Stage 1: official Teldrive v2 binary | |
| FROM ghcr.io/tgdrive/teldrive:2.0.12 AS teldrive | |
| # Stage 2: lightweight Alpine runtime (needs /bin/sh for start.sh) | |
| FROM alpine:3.20 | |
| RUN apk add --no-cache ca-certificates tzdata \ | |
| && adduser -D -u 1000 teldrive | |
| # Official v2 image stores the binary at /usr/bin/teldrive | |
| COPY --from=teldrive /usr/bin/teldrive /usr/bin/teldrive | |
| COPY start.sh /start.sh | |
| RUN chmod 755 /start.sh | |
| USER teldrive | |
| WORKDIR /home/teldrive | |
| EXPOSE 8080 | |
| ENTRYPOINT ["/start.sh"] | |