Download Dockerfile from Sinketji/Notebook1: direct link, hf CLI and curl.
- Browser
- Download file 514 Bytes
-
https://huggingface.co/spaces/Sinketji/Notebook1/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Sinketji/Notebook1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Sinketji/Notebook1/resolve/main/Dockerfile
514 Bytes
| FROM python:3.10-slim | |
| # Terminal commands (wget, curl, git) ke liye tools install karna | |
| RUN apt-get update && apt-get install -y \ | |
| wget curl git sudo && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=user . $HOME/app | |
| # Packages install karna | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # FastAPI ko port 7860 par run karna | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |