Spaces:
Paused
Paused
File size: 640 Bytes
102d674 33b9651 102d674 8ef87e9 3a3f71e 102d674 3a3f71e b390d07 8ef87e9 772c295 33b9651 31c7d9c 3a3f71e 33b9651 102d674 33b9651 102d674 33eb150 33b9651 3a3f71e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | 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"] |