Spaces:
Paused
Paused
Download Dockerfile from void0028/my-jiotv-server: direct link, hf CLI and curl.
- Browser
- Download file 688 Bytes
-
https://huggingface.co/spaces/void0028/my-jiotv-server/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/void0028/my-jiotv-server/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/void0028/my-jiotv-server/resolve/main/Dockerfile
688 Bytes
| FROM ubuntu:22.04 | |
| # 1. Basics only | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| RUN apt-get update && apt-get install -y wget ca-certificates && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /root | |
| # 2. Force the latest AMD64 binary | |
| RUN wget https://github.com/JioTV-Go/jiotv_go/releases/latest/download/jiotv_go-linux-amd64 -O jiotv_go && \ | |
| chmod +x jiotv_go | |
| # 3. Create the hidden config directory | |
| RUN mkdir -p /root/.jiotv_go | |
| # 4. Use the Hugging Face default port | |
| EXPOSE 7860 | |
| # 5. Start command | |
| # We use 'sh -c' to ensure the echo and the serve command run in the right order | |
| CMD sh -c 'echo "$JIOTV_CREDS" > /root/.jiotv_go/store_v4.toml && ./jiotv_go serve --host 0.0.0.0 --port 7860 --public' |