Download dockerfile from s2337a/firsttry: direct link, hf CLI and curl.
- Browser
- Download file 342 Bytes
-
https://huggingface.co/spaces/s2337a/firsttry/resolve/main/dockerfile
- Command line
-
hf download hf://spaces/s2337a/firsttry/dockerfile
-
curl -L -o dockerfile https://huggingface.co/spaces/s2337a/firsttry/resolve/main/dockerfile
342 Bytes
| # Base image | |
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /home/user/app | |
| # Copy requirements and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code | |
| COPY . . | |
| # Default command | |
| CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |