amri12310 commited on
Commit
3a3f71e
·
verified ·
1 Parent(s): 00a6b1b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -7
Dockerfile CHANGED
@@ -1,15 +1,25 @@
1
- FROM python:3.9-slim
2
 
3
- # Install Aria2c (For max-speed archiving) and Node.js (For Peerflix Live Streaming)
4
- RUN apt-get update && apt-get install -y aria2 nodejs npm curl procps
 
 
 
 
5
 
 
 
 
 
6
 
7
  WORKDIR /app
 
8
 
9
  # Install Python requirements
10
- RUN pip install flask requests huggingface_hub
11
 
12
- COPY . .
 
13
 
14
- EXPOSE 7860
15
- CMD ["python", "main.py"]
 
1
+ FROM python:3.10-slim
2
 
3
+ # Install system dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ curl \
6
+ gnupg \
7
+ python3-libtorrent \
8
+ && rm -rf /var/lib/apt/lists/*
9
 
10
+ # Install playit.gg agent
11
+ RUN curl -SsL https://playit-cloud.github.io/ppa/key.gpg | gpg --dearmor | tee /etc/apt/trusted.gpg.d/playit.gpg >/dev/null \
12
+ && echo "deb [signed-by=/etc/apt/trusted.gpg.d/playit.gpg] https://playit-cloud.github.io/ppa/data ./#" | tee /etc/apt/sources.list.d/playit-cloud.list \
13
+ && apt-get update && apt-get install -y playit
14
 
15
  WORKDIR /app
16
+ COPY . .
17
 
18
  # Install Python requirements
19
+ RUN pip install --no-cache-dir -r requirements.txt
20
 
21
+ # Create temp directories
22
+ RUN mkdir -p /app/temp && chmod 777 /app/temp
23
 
24
+ # Start script
25
+ CMD ["bash", "start.sh"]