Spaces:
Running
Running
Download Dockerfile from BonusLockSMith/diy-creator: direct link, hf CLI and curl.
- Browser
- Download file 591 Bytes
-
https://huggingface.co/spaces/BonusLockSMith/diy-creator/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/BonusLockSMith/diy-creator/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/BonusLockSMith/diy-creator/resolve/main/Dockerfile
591 Bytes
| # DIY Creator (#17) — Hugging Face Spaces (docker SDK). Cloud demo runs the Claude backend; | |
| # set an ANTHROPIC_API_KEY secret on the Space. To run locally against Ollama instead, ignore this | |
| # file and just `python app.py` (defaults to http://127.0.0.1:11434). | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| ENV PORT=7860 | |
| # Cloud demo backend. Locally, leave DIY_LLM_BACKEND unset to use Ollama. | |
| ENV DIY_LLM_BACKEND=claude | |
| ENV ANTHROPIC_MODEL=claude-haiku-4-5 | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |