# syntax=docker/dockerfile:1.5.0 # ************************************************** # The pyenv dockerfile builds a cuda compatible pyenv # environment with a specific version precompiled and builtin. # # This dockerfile uses new-ish buildkit syntax. # Details on how to run are on the bottom of the file. # (docker devs: todo unconsequential heredocs) # # ************************************************** FROM docker.io/nvidia/cuda:11.4.3-cudnn8-devel-ubuntu20.04 ARG PYTHON_VERSION=3.10.5 ARG PYENV_VERSION=v2.3.13 ENV HOME=/root ENV PYENV_ROOT=/root/.pyenv ENV PIP_ROOT_USER_ACTION=ignore ## Install Prerequisites RUN <> $HOME/.bashrc echo "$BASHRC_CONTENTS" >> $HOME/.profile # Write a secondary script for non-interactive usage #echo "$BASHRC_CONTENTS" >> $HOME/activate #source $HOME/activate EOF ################ ### __DOCS__ ### ################ RUN <