Opera8 commited on
Commit
0ed3ea4
·
verified ·
1 Parent(s): 45284c6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -6
Dockerfile CHANGED
@@ -1,21 +1,27 @@
1
  FROM python:3.10-slim
2
 
3
- # نصب پکیج‌های سیستمی و فونت‌ها
4
  RUN apt-get update && \
5
  apt-get install -y ffmpeg wget fontconfig && \
6
  rm -rf /var/lib/apt/lists/*
7
 
8
- # نصب فونت‌های فارسی از CDN پایدار
9
- RUN mkdir -p /usr/share/fonts/truetype/persian
10
- RUN wget "https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/ttf/Vazirmatn-Bold.ttf" -O /usr/share/fonts/truetype/persian/Vazirmatn.ttf
11
- RUN wget "https://cdn.jsdelivr.net/gh/google/fonts@main/ofl/lalezar/Lalezar-Regular.ttf" -O /usr/share/fonts/truetype/persian/Lalezar.ttf
 
 
 
 
 
 
12
 
13
  # کش کردن فونت‌ها
14
  RUN fc-cache -fv
15
 
16
  WORKDIR /app
17
 
18
- # پوشه‌های عملیاتی
19
  RUN mkdir -p /app/static /app/temp
20
 
21
  COPY requirements.txt .
 
1
  FROM python:3.10-slim
2
 
3
+ # نصب ابزارها
4
  RUN apt-get update && \
5
  apt-get install -y ffmpeg wget fontconfig && \
6
  rm -rf /var/lib/apt/lists/*
7
 
8
+ # --- نصب فونت‌ها (فارسی + انگلیسی) ---
9
+ RUN mkdir -p /usr/share/fonts/truetype/custom
10
+
11
+ # 1. فارسی: وزیر و لاله زار
12
+ RUN wget "https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/ttf/Vazirmatn-Bold.ttf" -O /usr/share/fonts/truetype/custom/Vazirmatn.ttf
13
+ RUN wget "https://cdn.jsdelivr.net/gh/google/fonts@main/ofl/lalezar/Lalezar-Regular.ttf" -O /usr/share/fonts/truetype/custom/Lalezar.ttf
14
+
15
+ # 2. انگلیسی: Roboto (رسمی) و Bangers (یوتیوبی/کمیک)
16
+ RUN wget "https://cdn.jsdelivr.net/gh/google/fonts@main/apache/roboto/Roboto-Bold.ttf" -O /usr/share/fonts/truetype/custom/Roboto.ttf
17
+ RUN wget "https://cdn.jsdelivr.net/gh/google/fonts@main/ofl/bangers/Bangers-Regular.ttf" -O /usr/share/fonts/truetype/custom/Bangers.ttf
18
 
19
  # کش کردن فونت‌ها
20
  RUN fc-cache -fv
21
 
22
  WORKDIR /app
23
 
24
+ # ساخت پوشه‌ها
25
  RUN mkdir -p /app/static /app/temp
26
 
27
  COPY requirements.txt .