Opera8 commited on
Commit
618b836
·
verified ·
1 Parent(s): 273af39

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -6
Dockerfile CHANGED
@@ -1,20 +1,24 @@
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
 
1
  FROM python:3.10-slim
2
 
3
+ # نصب FFmpeg و ابزارهای دانلود
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. فارسی: وزیرمتن (لینک CDN پایدار)
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
+
14
+ # 2. فارسی: لاله زار (لینک CDN پایدار)
15
  RUN wget "https://cdn.jsdelivr.net/gh/google/fonts@main/ofl/lalezar/Lalezar-Regular.ttf" -O /usr/share/fonts/truetype/custom/Lalezar.ttf
16
 
17
+ # 3. انگلیسی: Roboto (لینک مستقیم گیت‌هاب - برای رفع ارور 403)
18
+ RUN wget "https://raw.githubusercontent.com/google/fonts/main/apache/roboto/Roboto-Bold.ttf" -O /usr/share/fonts/truetype/custom/Roboto.ttf
19
+
20
+ # 4. انگلیسی: Bangers (لینک مستقیم گیت‌هاب)
21
+ RUN wget "https://raw.githubusercontent.com/google/fonts/main/ofl/bangers/Bangers-Regular.ttf" -O /usr/share/fonts/truetype/custom/Bangers.ttf
22
 
23
  # کش کردن فونت‌ها
24
  RUN fc-cache -fv