Spaces:
Paused
Paused
Download Dockerfile from Testing-Lab/sv2: direct link, hf CLI and curl.
- Browser
- Download file 506 Bytes
-
https://huggingface.co/spaces/Testing-Lab/sv2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Testing-Lab/sv2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Testing-Lab/sv2/resolve/main/Dockerfile
506 Bytes
| FROM shadowv2/int-driver:latest | |
| EXPOSE 8000 | |
| # Install Python + venv tools | |
| RUN apt-get update && apt-get install -y python3 python3-venv python3-pip | |
| # Create a virtual environment | |
| RUN python3 -m venv /opt/venv | |
| # Activate venv for all future commands | |
| ENV PATH="/opt/venv/bin:$PATH" | |
| # Install FastAPI inside venv | |
| COPY requirements.txt /requirements.txt | |
| RUN pip install --no-cache-dir -r /requirements.txt | |
| # Copy app | |
| COPY main.py /main.py | |
| # Run FastAPI + shadow driver | |
| ENTRYPOINT ["python3", "/main.py"] |