Opera8 commited on
Commit
2da9ec1
·
verified ·
1 Parent(s): 3a2638c

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # نصب FFmpeg و فونت‌های کامل فارسی (Noto Naskh و Sans)
4
+ RUN apt-get update && \
5
+ apt-get install -y ffmpeg fonts-noto fonts-noto-core fonts-noto-extra fontconfig && \
6
+ fc-cache -fv && \
7
+ rm -rf /var/lib/apt/lists/*
8
+
9
+ WORKDIR /app
10
+
11
+ COPY requirements.txt .
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ COPY . .
15
+
16
+ # دسترسی کامل برای نوشتن فایل‌ها
17
+ RUN chmod -R 777 /app
18
+
19
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]