FROM python:3.10-slim RUN pip install --no-cache-dir gradio torch transformers accelerate spaces WORKDIR /app COPY app.py requirements.txt ./ # Test: just import the app module — if rmsnorm_fn is None, it'll crash at model load CMD ["python", "-c", "import app; print('✅ App module imported successfully')"]