Update Dockerfile
هذا الالتزام موجود في:
16
Dockerfile
16
Dockerfile
@@ -1,20 +1,8 @@
|
|||||||
FROM python:3.12-slim
|
FROM python:3.12-slim
|
||||||
|
RUN apt-get update && apt-get install -y locales && echo 'ar_SA.UTF-8 UTF-8' > /etc/locale.gen && locale-gen && rm -rf /var/lib/apt/lists/*
|
||||||
# تثبيت المكتبات العربية الأساسية
|
|
||||||
RUN apt-get update && apt-get install -y \
|
|
||||||
locales \
|
|
||||||
&& echo "ar_SA.UTF-8 UTF-8" > /etc/locale.gen \
|
|
||||||
&& locale-gen \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
ENV LANG=ar_SA.UTF-8
|
ENV LANG=ar_SA.UTF-8
|
||||||
ENV LC_ALL=ar_SA.UTF-8
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
CMD ['python','main.py']
|
||||||
CMD ["python", "main.py"]
|
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم