Spaces:
Sleeping
Sleeping
Download Dockerfile from BiasLab2025/TaskCLIP: direct link, hf CLI and curl.
- Browser
- Download file 648 Bytes
-
https://huggingface.co/spaces/BiasLab2025/TaskCLIP/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/BiasLab2025/TaskCLIP/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/BiasLab2025/TaskCLIP/resolve/main/Dockerfile
648 Bytes
| FROM pytorch/pytorch:2.3.1-cuda12.1-cudnn8-devel | |
| WORKDIR /app | |
| ENV YOLO_CONFIG_DIR=/tmp/Ultralytics | |
| ENV LD_LIBRARY_PATH=/usr/local/cuda/lib64:/opt/conda/lib:${LD_LIBRARY_PATH} | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git ffmpeg libgl1 libglib2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY . /app | |
| RUN pip install --no-cache-dir -r /app/requirements.txt | |
| RUN pip install --no-cache-dir -e /app/ImageBind | |
| EXPOSE 7860 | |
| CMD ["bash", "-lc", "python -c \"import torch; print('torch', torch.__version__, 'cuda', torch.version.cuda, 'avail', torch.cuda.is_available())\" && uvicorn webui.app:app --host 0.0.0.0 --port 7860"] |