esp32-chat-bot / Dockerfile
MHD011's picture
Upload 3 files
ba84082 verified
raw
history blame
556 Bytes
FROM python:3.9-slim
WORKDIR /app
# تثبيت التبعيات الأساسية أولاً
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt gunicorn==20.1.0 # تأكيد تثبيت gunicorn
RUN mkdir -p /app/model_cache && chmod -R 777 /app/model_cache
ENV TRANSFORMERS_CACHE=/app/model_cache
ENV HF_HOME=/app/model_cache
COPY . .
CMD ["gunicorn", "--bind", "0.0.0.0:8080", "--timeout", "600", "app:app"]