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'