Download Dockerfile from blitzkrieg0000/CablePoleSegmentation: direct link, hf CLI and curl.
- Browser
- Download file 499 Bytes
-
https://huggingface.co/spaces/blitzkrieg0000/CablePoleSegmentation/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/blitzkrieg0000/CablePoleSegmentation/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/blitzkrieg0000/CablePoleSegmentation/resolve/main/Dockerfile
499 Bytes
| FROM pytorch/pytorch:2.4.1-cuda12.4-cudnn9-runtime | |
| ARG DEBIAN_FRONTEND=noninteractive | |
| ENV PYTHONUNBUFFERED=1 | |
| RUN useradd -m -u 1000 user | |
| RUN apt-get update && apt-get install build-essential ffmpeg libsm6 libxext6 git git-lfs --no-install-recommends -y \ | |
| && apt-get clean \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN pip install --no-cache-dir gradio opencv-python pandas ultralytics onnx onnxruntime | |
| USER user | |
| WORKDIR /app | |
| COPY --chown=user ./ /app | |
| EXPOSE 1071 | |
| CMD ["python", "/app/UI/Main.py"] |