Gagandeep12 commited on
Commit
3db7dc4
·
verified ·
1 Parent(s): 83a2e52

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use Python base image
2
+ FROM python:3.10-slim
3
+
4
+ # Install system dependencies (ffmpeg is required for subtitles/video processing)
5
+ RUN apt-get update && apt-get install -y ffmpeg git && rm -rf /var/lib/apt/lists/*
6
+
7
+ # Copy dependency list and install Python packages
8
+ COPY requirements.txt .
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # Copy your whole app code into container
12
+ COPY . /app
13
+ WORKDIR /app
14
+
15
+ # Hugging Face Spaces requires the app to listen on port 7860
16
+ ENV PORT=7860
17
+
18
+ # Run the Flask app
19
+ CMD ["python", "app.py"]