Spaces:
Sleeping
Sleeping
Download Dockerfile from jacklachan/lighthouse: direct link, hf CLI and curl.
- Browser
- Download file 630 Bytes
-
https://huggingface.co/spaces/jacklachan/lighthouse/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/jacklachan/lighthouse/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/jacklachan/lighthouse/resolve/main/Dockerfile
630 Bytes
| # Lighthouse — self-contained sandbox image (also used by the HuggingFace Docker Space). | |
| # Runs the Streamlit demo on CPU. For the full 100K rank, use rank.py (see README). | |
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # CPU-only torch first (kept out of the CUDA default to keep the image small) | |
| RUN pip install --no-cache-dir torch==2.5.1 --index-url https://download.pytorch.org/whl/cpu | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # HuggingFace Spaces expects the app on 7860 | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "app/app.py", "--server.port=7860", "--server.address=0.0.0.0"] | |