2020-02-26 06:50:27 +00:00
|
|
|
LABEL maintainer="Christoph Schranz <christoph.schranz@salzburgresearch.at>"
|
|
|
|
|
2020-03-10 17:29:25 +00:00
|
|
|
# Install cudatoolkit must match the version of the base image
|
2020-02-24 20:35:15 +00:00
|
|
|
RUN conda install --quiet --yes \
|
2020-03-10 17:29:25 +00:00
|
|
|
cudatoolkit=10.1 && \
|
2020-02-24 20:35:15 +00:00
|
|
|
conda clean --all -f -y && \
|
|
|
|
fix-permissions $CONDA_DIR && \
|
|
|
|
fix-permissions /home/$NB_USER
|
|
|
|
|
2020-03-10 17:29:25 +00:00
|
|
|
# Install Tensorflow
|
2020-02-20 10:03:48 +00:00
|
|
|
RUN conda install --quiet --yes \
|
2020-03-10 17:29:25 +00:00
|
|
|
'tensorflow-gpu' \
|
|
|
|
'keras-gpu' && \
|
2020-02-20 10:03:48 +00:00
|
|
|
conda clean --all -f -y && \
|
|
|
|
fix-permissions $CONDA_DIR && \
|
|
|
|
fix-permissions /home/$NB_USER
|
|
|
|
|
2020-03-10 17:29:25 +00:00
|
|
|
# Install PyTorch with dependencies
|
|
|
|
RUN conda install --quiet --yes \
|
|
|
|
pyyaml mkl mkl-include setuptools cmake cffi typing \
|
|
|
|
pytorch \
|
2020-02-20 10:03:48 +00:00
|
|
|
torchvision && \
|
|
|
|
conda clean --all -f -y && \
|
2020-03-10 17:29:25 +00:00
|
|
|
pip install torch_nightly -f https://download.pytorch.org/whl/nightly/cu90/torch_nightly.html && \
|
2020-02-20 10:03:48 +00:00
|
|
|
fix-permissions $CONDA_DIR && \
|
|
|
|
fix-permissions /home/$NB_USER
|