Spaces:
Sleeping
Sleeping
Download Dockerfile from arpy8/drishti-api: direct link, hf CLI and curl.
- Browser
- Download file 296 Bytes
-
https://huggingface.co/spaces/arpy8/drishti-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/arpy8/drishti-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/arpy8/drishti-api/resolve/main/Dockerfile
296 Bytes
| FROM python:3.11.10 | |
| WORKDIR /code | |
| RUN pip install --no-cache-dir uv | |
| ENV VIRTUAL_ENV=/code/.venv | |
| RUN uv venv $VIRTUAL_ENV | |
| ENV PATH="$VIRTUAL_ENV/bin:$PATH" | |
| COPY requirements.txt . | |
| RUN uv pip install --no-cache -r requirements.txt | |
| COPY . . | |
| ENV PORT=7860 | |
| EXPOSE $PORT | |
| CMD ["python", "main.py"] |