amri12310 commited on
Commit
33b9651
·
verified ·
1 Parent(s): 288e522

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -3
Dockerfile CHANGED
@@ -1,7 +1,15 @@
1
- FROM python:3.9
2
- RUN apt-get update && apt-get install -y aria2
 
 
 
 
3
  WORKDIR /app
 
 
 
 
4
  COPY . .
5
- RUN pip install huggingface_hub flask requests
6
  EXPOSE 7860
7
  CMD ["python", "main.py"]
 
1
+ FROM python:3.9-slim
2
+
3
+ # Install Aria2c (For max-speed archiving) and Node.js (For WebTorrent Live Streaming)
4
+ RUN apt-get update && apt-get install -y aria2 nodejs npm curl procps
5
+ RUN npm install -g webtorrent-cli
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"]