Download conf/upstream/Dockerfile from OneScience-Group/BoltzGen: direct link, hf CLI and curl.
- Browser
- Download file 1.72 kB
-
https://huggingface.co/OneScience-Group/BoltzGen/resolve/main/conf/upstream/Dockerfile
- Command line
-
hf download hf://OneScience-Group/BoltzGen/conf/upstream/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/OneScience-Group/BoltzGen/resolve/main/conf/upstream/Dockerfile
1.72 kB
| # syntax=docker/dockerfile:1 | |
| FROM nvidia/cuda:12.2.2-cudnn8-devel-ubuntu22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| CUDA_HOME=/usr/local/cuda \ | |
| PIP_EXTRA_INDEX_URL=https://download.pytorch.org/whl/cu121 \ | |
| HF_HOME=/cache | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| software-properties-common \ | |
| curl \ | |
| && add-apt-repository -y ppa:deadsnakes/ppa \ | |
| && apt-get update \ | |
| && apt-get install -y --no-install-recommends \ | |
| python3.11 \ | |
| python3.11-dev \ | |
| python3.11-venv \ | |
| build-essential \ | |
| git \ | |
| cmake \ | |
| pkg-config \ | |
| libffi-dev \ | |
| libssl-dev \ | |
| libxml2-dev \ | |
| libxslt-dev \ | |
| libgl1 \ | |
| libhdf5-dev \ | |
| libboost-all-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1 && \ | |
| update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 && \ | |
| curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11 && \ | |
| python3.11 -m pip install --upgrade pip setuptools setuptools_scm wheel | |
| WORKDIR /app | |
| COPY . /app | |
| RUN pip install --no-cache-dir -e /app | |
| ARG DOWNLOAD_WEIGHTS=false | |
| RUN mkdir -p "${HF_HOME}" && \ | |
| if [ "${DOWNLOAD_WEIGHTS}" = "true" ]; then \ | |
| boltzgen download all --cache "${HF_HOME}" --force_download; \ | |
| fi | |
| ARG USERNAME=boltzgen | |
| ARG USER_UID=1000 | |
| ARG USER_GID=1000 | |
| RUN groupadd --gid ${USER_GID} ${USERNAME} && \ | |
| useradd --uid ${USER_UID} --gid ${USER_GID} --create-home --shell /bin/bash ${USERNAME} | |
| RUN mkdir -p "${HF_HOME}" && chown -R ${USER_UID}:${USER_GID} "${HF_HOME}" | |
| USER ${USERNAME} | |
| WORKDIR /workspace |