Ezmary commited on
Commit
18aee78
·
verified ·
1 Parent(s): 77d8a7a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -8
Dockerfile CHANGED
@@ -1,14 +1,13 @@
1
- FROM python:3.9
 
 
 
2
 
3
  WORKDIR /app
4
 
5
- # ایجاد پوشه‌های لازم
6
- RUN mkdir -p /app/static/uploads
7
- RUN mkdir -p /app/static/videos
8
- RUN mkdir -p /app/data
9
- RUN chmod 777 /app/static/uploads
10
- RUN chmod 777 /app/static/videos
11
- RUN chmod 777 /app/data
12
 
13
  COPY requirements.txt .
14
  RUN pip install --no-cache-dir -r requirements.txt
 
1
+ FROM python:3.9-slim
2
+
3
+ # نصب FFmpeg برای پردازش صدا و ویدیو
4
+ RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/*
5
 
6
  WORKDIR /app
7
 
8
+ # ساخت پوشه‌های لازم
9
+ RUN mkdir -p /app/static/uploads /app/static/temp /app/data
10
+ RUN chmod 777 /app/static/uploads /app/static/temp /app/data
 
 
 
 
11
 
12
  COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt