Spaces:
Paused
Paused
Download Dockerfile from haxwitcher/proxy-debrid: direct link, hf CLI and curl.
- Browser
- Download file 816 Bytes
-
https://huggingface.co/spaces/haxwitcher/proxy-debrid/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/haxwitcher/proxy-debrid/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/haxwitcher/proxy-debrid/resolve/main/Dockerfile
816 Bytes
| FROM golang:1.24.1-alpine3.20 AS builder | |
| WORKDIR /app | |
| RUN apk add --no-cache git make gcc musl-dev sqlite-dev | |
| RUN git clone https://github.com/hsp1020/stremthru.git . | |
| RUN go mod download && make build | |
| FROM alpine:3.20 | |
| WORKDIR /app | |
| COPY --from=builder /app/stremthru . | |
| RUN apk add --no-cache libc6-compat sqlite && \ | |
| mkdir -p /app/data && \ | |
| touch /app/data/stremthru.db && \ | |
| chown -R 1000:1000 /app/data && \ | |
| chmod -R 755 /app/data | |
| # Hugging Face ํธํ์ฑ ์ค์ | |
| ENV PORT=7860 | |
| ENV STREMTHRU_DATA_DIR=/app/data | |
| EXPOSE 7860 | |
| USER 1000 | |
| # Dockerfile ์์ (ํฌํธ ๊ฐ์ ์ง์ ) | |
| ENTRYPOINT ["sh", "-c", "./stremthru --port 7860 --bind 0.0.0.0"] | |
| # HEALTHCHECK ์ถ๊ฐ (Dockerfile ์ตํ๋จ) | |
| HEALTHCHECK --interval=30s --timeout=3s \ | |
| CMD wget --quiet --tries=1 --spider http://localhost:7860 || exit 1 |