jupyterlab-datascience-gpu/Dockerfile

17 lines
755 B
Docker

FROM git.sandbox.iuk.hdm-stuttgart.de/grosse/jupyterlab-datascience:4.0.12f
# debian:bullseye-20230109-slim
ARG NB_USER="jovyan"
ARG NB_UID="1000"
ARG NB_GID="100"
ENV CONDA_CUDA_OVERRIDE="11.8"
ENV NUM_GPUS=1
USER root
RUN apt-get update --yes && \
apt-get install --yes --no-install-recommends \
ffmpeg \
libportaudio2 && \
apt-get clean && rm -rf /var/lib/apt/lists/*
USER $NB_UID
#RUN pip install torch==1.13.1+cu116 torchvision==0.14.1+cu116 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu116
#RUN CONDA_OVERRIDE_CUDA="12.1" conda install pytorch torchvision torchaudio pytorch-cuda=12.1 -c pytorch -c nvidia
RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118