Elias207 commited on
Commit
c7e8d55
·
verified ·
1 Parent(s): 8d10935

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM python:3.10-slim
2
 
3
- # نصب FFmpeg و کتابخانه‌های حیاتی برای متن فارسی (libraqm)
4
  RUN apt-get update && \
5
  apt-get install -y ffmpeg fontconfig \
6
  libraqm0 \
@@ -9,12 +9,13 @@ RUN apt-get update && \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  WORKDIR /app
12
- RUN mkdir -p /app/static /app/temp
 
13
 
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
- # کپی کردن فونت‌ها و کدها
18
  COPY . .
19
  RUN chmod -R 777 /app
20
 
 
1
  FROM python:3.10-slim
2
 
3
+ # نصب FFmpeg و کتابخانه‌های حیاتی
4
  RUN apt-get update && \
5
  apt-get install -y ffmpeg fontconfig \
6
  libraqm0 \
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  WORKDIR /app
12
+ # ایجاد پوشه‌های لازم
13
+ RUN mkdir -p /app/static/css /app/static/js /app/temp
14
 
15
  COPY requirements.txt .
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
+ # کپی کردن تمام فایل‌ها
19
  COPY . .
20
  RUN chmod -R 777 /app
21