File size: 690 Bytes
c6526db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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"]