JerryCoder commited on
Commit
a450684
·
verified ·
1 Parent(s): 2135afe

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install ffmpeg + yt-dlp dependencies
4
+ RUN apt-get update && \
5
+ apt-get install -y ffmpeg curl && \
6
+ apt-get clean && \
7
+ rm -rf /var/lib/apt/lists/*
8
+
9
+ WORKDIR /app
10
+
11
+ COPY app.py .
12
+
13
+ # Install python deps + yt-dlp
14
+ RUN pip install --no-cache-dir fastapi uvicorn yt-dlp requests
15
+
16
+ EXPOSE 7860
17
+
18
+ CMD ["uvicorn", "app:app", "--host=0.0.0.0", "--port=7860"]