bh / Dockerfile
bahi-bh's picture
Create Dockerfile
d6a4e44 verified
raw
history blame contribute delete
426 Bytes
FROM python:3.10-slim
WORKDIR /app
# تثبيت المتطلبات الأساسية
RUN apt-get update && apt-get install -y \
gcc \
&& rm -rf /var/lib/apt/lists/*
# نسخ الملفات
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# إنشاء مجلد للكوكيز
RUN mkdir -p /app/data
# المنفذ
EXPOSE 7860
# تشغيل التطبيق
CMD ["python", "app.py"]