bep40 commited on
Commit
f24002b
·
verified ·
1 Parent(s): b355324

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -20
Dockerfile CHANGED
@@ -2,29 +2,14 @@ FROM python:3.12-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install system dependencies
6
- RUN apt-get update && apt-get install -y --no-install-recommends \
7
- ffmpeg \
8
- libx264-dev \
9
- libopus-dev \
10
- libvpx-dev \
11
- libass-dev \
12
- libfreetype6-dev \
13
- fonts-dejavu-core \
14
- fonts-liberation \
15
- curl \
16
- && rm -rf /var/lib/apt/lists/*
17
 
18
- # Install Python dependencies
19
  COPY requirements.txt .
20
- RUN pip install --no-cache-dir -r requirements.txt
21
 
22
- # Copy application code
23
  COPY . .
24
-
25
- # Build timestamp for cache busting
26
- RUN date > /app/.build_timestamp
27
-
28
  EXPOSE 7860
29
 
30
- CMD ["python", "main.py"]
 
2
 
3
  WORKDIR /app
4
 
5
+ RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg fonts-dejavu-core && rm -rf /var/lib/apt/lists/*
6
+ RUN pip install --no-cache-dir "beautifulsoup4>=4.12" lxml
7
+ RUN pip install --no-cache-dir fastapi uvicorn requests beautifulsoup4 jinja2 yt-dlp huggingface_hub gTTS pillow edge-tts python-dateutil httpx
 
 
 
 
 
 
 
 
 
8
 
 
9
  COPY requirements.txt .
10
+ RUN pip install --no-cache-dir -r requirements.txt || true
11
 
 
12
  COPY . .
 
 
 
 
13
  EXPOSE 7860
14
 
15
+ CMD ["uvicorn", "_run:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]