Spaces:
Running
Running
Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +30 -0
Dockerfile
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.11-slim
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
# Avoid pulling runtime torch from source on the slim image -- we install
|
| 6 |
+
# a CPU-only torch via the regular pip resolver, which is what the previous
|
| 7 |
+
# Space did and what HF Spaces expects.
|
| 8 |
+
RUN pip install --no-cache-dir --upgrade pip
|
| 9 |
+
|
| 10 |
+
COPY requirements.txt .
|
| 11 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
+
|
| 13 |
+
# Text + Python source
|
| 14 |
+
COPY app.py .
|
| 15 |
+
COPY gemma_npc.py .
|
| 16 |
+
|
| 17 |
+
# LoRA adapter for Gemma 3 270M (the new fast counter-move model).
|
| 18 |
+
COPY adapters/ adapters/
|
| 19 |
+
|
| 20 |
+
# React game bundle
|
| 21 |
+
COPY static/ static/
|
| 22 |
+
|
| 23 |
+
ENV PORT=7860
|
| 24 |
+
ENV GRADIO_SERVER_NAME=0.0.0.0
|
| 25 |
+
ENV TRANSFORMERS_VERBOSITY=info
|
| 26 |
+
ENV HF_HUB_ENABLE_HF_TRANSFER=0
|
| 27 |
+
|
| 28 |
+
EXPOSE 7860
|
| 29 |
+
|
| 30 |
+
CMD ["python", "app.py"]
|