fantaxy commited on
Commit
5ce4353
1 Parent(s): efb17c4

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +32 -0
Dockerfile ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /home/user/app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ ffmpeg \
8
+ git \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # Install Python packages
12
+ COPY requirements.txt .
13
+ RUN pip install --no-cache-dir pip==22.3.1 && \
14
+ pip install --no-cache-dir \
15
+ datasets \
16
+ "huggingface-hub>=0.19" \
17
+ "hf-transfer>=0.1.4" \
18
+ "protobuf<4" \
19
+ "click<8.1" \
20
+ "pydantic~=1.0" \
21
+ moviepy
22
+
23
+ RUN pip install --no-cache-dir -r requirements.txt
24
+
25
+ # Copy application code
26
+ COPY . .
27
+
28
+ # Set environment variables
29
+ ENV PYTHONUNBUFFERED=1
30
+
31
+ # Run the application
32
+ CMD ["python", "app.py"]