FROM python:3.12-slim ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 ENV DJANGO_DEBUG=0 ENV DJANGO_ALLOWED_HOSTS=.hf.space,localhost,127.0.0.1 ENV DJANGO_CACHE_BACKEND=locmem ENV SERVICE_INTENT_MODEL_DIR=/app/artifacts/service_intent_model ENV internal orchestration_BASE_URL=https://mortadhabbb-internal-service-orchestration.hf.space WORKDIR /app COPY requirements.txt requirements.txt COPY requirements-runtime-ml.txt requirements-runtime-ml.txt COPY requirements-ml.txt requirements-ml.txt RUN pip install --no-cache-dir --upgrade pip \ && pip install --no-cache-dir -r requirements.txt \ && pip install --no-cache-dir -r requirements-runtime-ml.txt \ && pip install --no-cache-dir -r requirements-ml.txt COPY manage.py . COPY chatbot ./chatbot COPY apps ./apps COPY templates ./templates COPY static ./static COPY artifacts/service_intent_model ./artifacts/service_intent_model COPY docker-entrypoint.sh /app/docker-entrypoint.sh RUN chmod +x /app/docker-entrypoint.sh EXPOSE 7860 CMD ["/app/docker-entrypoint.sh"]