Jitendra55566 commited on
Commit
a1d8aeb
·
verified ·
1 Parent(s): 870ae0d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -1
Dockerfile CHANGED
@@ -1,5 +1,21 @@
1
  FROM python:3.9
 
 
 
 
 
 
2
  WORKDIR /app
 
 
 
 
 
 
 
3
  COPY . .
4
- RUN pip install -r requirements.txt
 
 
 
5
  CMD ["python", "main.py"]
 
1
  FROM python:3.9
2
+
3
+ # Video Rendering ke liye FFmpeg install kar rahe hain
4
+ RUN apt-get update && \
5
+ apt-get install -y ffmpeg git && \
6
+ rm -rf /var/lib/apt/lists/*
7
+
8
  WORKDIR /app
9
+
10
+ # Permissions set kar rahe hain taaki downloading/uploading mein error na aaye
11
+ RUN chmod 777 /app
12
+
13
+ COPY requirements.txt .
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
  COPY . .
17
+
18
+ # Hugging Face ke liye port 7860 khol rahe hain
19
+ EXPOSE 7860
20
+
21
  CMD ["python", "main.py"]