Spaces:
Running
Running
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Avoid pulling runtime torch from source on the slim image -- we install | |
| # a CPU-only torch via the regular pip resolver, which is what the previous | |
| # Space did and what HF Spaces expects. | |
| RUN pip install --no-cache-dir --upgrade pip | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Text + Python source | |
| COPY app.py . | |
| COPY gemma_npc.py . | |
| # LoRA adapter for Gemma 3 270M (the new fast counter-move model). | |
| COPY adapters/ adapters/ | |
| # React game bundle | |
| COPY static/ static/ | |
| ENV PORT=7860 | |
| ENV GRADIO_SERVER_NAME=0.0.0.0 | |
| ENV TRANSFORMERS_VERBOSITY=info | |
| ENV HF_HUB_ENABLE_HF_TRANSFER=0 | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |