SamaaliWhisper / Dockerfile
MuhammadHijazii's picture
Upload 17 files
dfdd9cb verified
raw
history blame contribute delete
843 Bytes
# استخدام Python 3.11 كصورة أساسية
FROM python:3.11-slim
# تعيين متغيرات البيئة
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
ENV PORT=7860
# تثبيت التبعيات النظام
RUN apt-get update && apt-get install -y \
build-essential \
curl \
software-properties-common \
git \
&& rm -rf /var/lib/apt/lists/*
# إنشاء مجلد العمل
WORKDIR /app
# نسخ ملف المتطلبات
COPY requirements.txt .
# تثبيت التبعيات Python
RUN pip install --no-cache-dir -r requirements.txt
# نسخ ملفات التطبيق
COPY . .
# تحميل بيانات NLTK المطلوبة
RUN python -c "import nltk; nltk.download('punkt'); nltk.download('punkt_tab')"
# كشف المنفذ
EXPOSE $PORT
# تشغيل التطبيق
CMD ["python", "app.py"]