Spaces:
Running
Running
Download workflow/Dockerfile from lauransotomayor/hyperFVC: direct link, hf CLI and curl.
- Browser
- Download file 912 Bytes
-
https://huggingface.co/spaces/lauransotomayor/hyperFVC/resolve/main/workflow/Dockerfile
- Command line
-
hf download hf://spaces/lauransotomayor/hyperFVC/workflow/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/lauransotomayor/hyperFVC/resolve/main/workflow/Dockerfile
912 Bytes
| FROM pytorch/pytorch:2.5.1-cuda11.8-cudnn9-runtime | |
| USER root | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| libsm6 \ | |
| libxext6 \ | |
| libxrender1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements-docker.txt /tmp/requirements-docker.txt | |
| RUN python -m pip install --no-cache-dir --upgrade pip && \ | |
| python -m pip install --no-cache-dir -r /tmp/requirements-docker.txt | |
| WORKDIR /workspace | |
| COPY . /workspace | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| MPLBACKEND=Agg \ | |
| OMP_NUM_THREADS=4 \ | |
| ENV_PYTHON=/opt/conda/bin/python \ | |
| ENV_LIB_DIR=/opt/conda/lib \ | |
| LD_LIBRARY_PATH=/opt/conda/lib | |
| RUN python -c "import torch, pytorch_lightning, rasterio; print('Torch:', torch.__version__); print('CUDA available:', torch.cuda.is_available())" | |
| CMD ["python", "phase_3_models/unet_site_models/validate_setup.py"] | |