Spaces:
Paused
Paused
Download Dockerfile from amri12310/sys-c-engine: direct link, hf CLI and curl.
- Browser
- Download file 640 Bytes
-
https://huggingface.co/spaces/amri12310/sys-c-engine/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/amri12310/sys-c-engine/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/amri12310/sys-c-engine/resolve/main/Dockerfile
640 Bytes
| FROM ubuntu:22.04 | |
| # Stop apt from asking questions during install | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # 1. Install system Python, libtorrent, and tools directly from Ubuntu repo | |
| RUN apt-get update && apt-get install -y \ | |
| python3 \ | |
| python3-pip \ | |
| python3-libtorrent \ | |
| curl \ | |
| gnupg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 2. Install playit.gg background agent | |
| WORKDIR /app | |
| COPY . . | |
| # 3. Install Python requirements via pip3 | |
| RUN pip3 install --no-cache-dir flask requests huggingface_hub | |
| # 4. Clean up start script endings and make executable | |
| RUN sed -i 's/\r$//' start.sh && chmod +x start.sh | |
| CMD ["bash", "start.sh"] |