Spaces:
Sleeping
Sleeping
Download Dockerfile from blackopsrepl/vehicle-routing-python: direct link, hf CLI and curl.
- Browser
- Download file 780 Bytes
-
https://huggingface.co/spaces/blackopsrepl/vehicle-routing-python/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/blackopsrepl/vehicle-routing-python/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/blackopsrepl/vehicle-routing-python/resolve/main/Dockerfile
780 Bytes
| # Use Python 3.12 base image | |
| FROM python:3.12 | |
| # Install JDK 21 (required for solverforge-legacy) | |
| RUN apt-get update && \ | |
| apt-get install -y wget gnupg2 && \ | |
| wget -O- https://packages.adoptium.net/artifactory/api/gpg/key/public | gpg --dearmor > /usr/share/keyrings/adoptium-archive-keyring.gpg && \ | |
| echo "deb [signed-by=/usr/share/keyrings/adoptium-archive-keyring.gpg] https://packages.adoptium.net/artifactory/deb bookworm main" > /etc/apt/sources.list.d/adoptium.list && \ | |
| apt-get update && \ | |
| apt-get install -y temurin-21-jdk && \ | |
| apt-get clean && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Copy application files | |
| COPY . . | |
| # Install the application | |
| RUN pip install --no-cache-dir -e . | |
| # Expose port 8080 | |
| EXPOSE 8080 | |
| # Run the application | |
| CMD ["run-app"] | |