Spaces:
Sleeping
Sleeping
Download Dockerfile from LeahRocks/SafeSpaceAI: direct link, hf CLI and curl.
- Browser
- Download file 273 Bytes
-
https://huggingface.co/spaces/LeahRocks/SafeSpaceAI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/LeahRocks/SafeSpaceAI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/LeahRocks/SafeSpaceAI/resolve/main/Dockerfile
273 Bytes
| FROM python:3.10 | |
| WORKDIR /app | |
| COPY . . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 🔥 Mode switch using environment variable | |
| CMD ["sh", "-c", "if [ \"$MODE\" = \"eval\" ]; then python inference.py; else uvicorn server.app:app --host 0.0.0.0 --port 7860; fi"] |