From afe53493a595e3eb7a64022c23e5bfcb0b7cf57f Mon Sep 17 00:00:00 2001 From: Aliaksandr Yakutovich Date: Wed, 2 Sep 2020 14:02:45 +0200 Subject: [PATCH] Install ruaml.yaml via conda. There are two different packages available on conda: `ruamel.yaml` and `ruamel_yaml`. Pip cannot distinguish them, therefore we have to install `ruamel.yaml` via conda. --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 45784a2..4a70cab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -80,8 +80,11 @@ RUN cd /tmp && \ conda update --all --quiet --yes && \ conda clean --all -f -y +# Upgrade ruamel.py version. Fixes https://github.com/aiidateam/aiida-core/issues/4339. +RUN conda install ruamel.yaml==0.16.10 + # This is needed to let non-root users create conda environments. -RUN mkdir /opt/conda/pkgs && touch /opt/conda/pkgs/urls.txt +RUN touch /opt/conda/pkgs/urls.txt # Create system user. COPY my_init.d/create-system-user.sh /etc/my_init.d/10_create-system-user.sh