Fred808 commited on
Commit
5d07805
·
verified ·
1 Parent(s): 6a29b03

Upload Dockerfile (1)

Browse files
Files changed (1) hide show
  1. Dockerfile (1) +33 -0
Dockerfile (1) ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ # Install system dependencies
4
+ RUN apt-get update && apt-get install -y --no-install-recommends \
5
+ unrar-free \
6
+ curl \
7
+ ffmpeg \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # Set working directory
11
+ WORKDIR /app
12
+
13
+ # Copy requirements and install Python dependencies
14
+ COPY requirements.txt .
15
+ RUN pip install --no-cache-dir -r requirements.txt
16
+
17
+ # Copy the application file
18
+ COPY app.py .
19
+
20
+ # Create necessary directories
21
+ RUN mkdir -p downloads extracted_tmp video_frames_tmp zipped_frames
22
+
23
+ # Expose port
24
+ EXPOSE 7860
25
+
26
+ # Set environment variables
27
+ ENV PYTHONUNBUFFERED=1
28
+ ENV HF_HOME=/app/.cache/huggingface
29
+
30
+ # Run the application
31
+ CMD ["python", "app.py"]
32
+
33
+