Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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
|
| 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
|