AnesKAM commited on
Commit
bc4e445
·
verified ·
1 Parent(s): 2e5f693

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -13
Dockerfile CHANGED
@@ -1,21 +1,16 @@
1
  FROM python:3.11-slim
 
2
 
3
- ENV PYTHONUNBUFFERED=1 \
4
- PYTHONDONTWRITEBYTECODE=1 \
5
- PIP_NO_CACHE_DIR=1
6
-
7
- RUN apt-get update && apt-get install -y --no-install-recommends curl git && 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
- RUN mkdir -p static workspace cache/icons
15
-
16
- COPY app.py ./app.py
17
- COPY index.html ./static/index.html
18
-
19
  EXPOSE 7860
20
-
21
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.11-slim
2
+ ENV PYTHONUNBUFFERED=1
3
 
4
+ # مكتبات نظام لـ WeasyPrint (PDF بالعربية) + خطوط Noto (النصوص العربية)
5
+ RUN apt-get update && apt-get install -y --no-install-recommends \
6
+ libpango-1.0-0 libpangoft2-1.0-0 libharfbuzz0b libffi-dev \
7
+ fonts-noto-core fonts-dejavu-core \
8
+ && rm -rf /var/lib/apt/lists/*
9
 
10
  WORKDIR /app
 
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
+ COPY . .
 
 
 
 
15
  EXPOSE 7860
16
+ CMD ["python", "genisi_server_v16.py"]