# ─── Nova-1 Chat Dockerfile ────────────────────────────────────────────────── FROM python:3.12-slim RUN apt-get update && apt-get install -y --no-install-recommends \ git && \ rm -rf /var/lib/apt/lists/* RUN pip install --no-cache-dir \ "gradio>=6.0" \ "transformers>=4.44" \ torch \ spaces \ accelerate # Set SSR mode to false (required for gradio.Server custom routes) ENV GRADIO_SSR_MODE=false COPY --chown=user . /app WORKDIR /app # HF Spaces convention EXPOSE 7860 ENV GRADIO_SERVER_NAME=0.0.0.0 ENV GRADIO_SERVER_PORT=7860 CMD ["python", "app.py"]