From 58fef581a632941100a9c3aaa7bc0c776dcdf50e Mon Sep 17 00:00:00 2001 From: Nuno Agostinho Date: Mon, 15 Jan 2024 17:03:12 +0000 Subject: [PATCH 1/2] Create user home dir with usual permissions --- docker/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index a24bc1061..7104119d2 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -119,7 +119,10 @@ ENV LANG_VAR en_US.UTF-8 ARG BRANCH # Create vep user -RUN useradd -r -m -U -d "$OPT" -s /bin/bash -c "VEP User" -p '' vep && usermod -a -G sudo vep && mkdir -p $OPT_SRC +RUN mkdir -p $OPT && \ + useradd -r -m -U -d "$OPT" -s /bin/bash -c "VEP User" -p '' vep && \ + usermod -a -G sudo vep && \ + mkdir -p $OPT_SRC USER vep # Copy downloaded libraries (stage 1) to this image (stage 2) From a365f6e1cf5b51be663d9effdb7bd806b06cea05 Mon Sep 17 00:00:00 2001 From: Nuno Agostinho Date: Tue, 16 Jan 2024 09:46:53 +0000 Subject: [PATCH 2/2] Fix folder permissions issue in Docker --- docker/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 7104119d2..af79f6554 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -119,8 +119,8 @@ ENV LANG_VAR en_US.UTF-8 ARG BRANCH # Create vep user -RUN mkdir -p $OPT && \ - useradd -r -m -U -d "$OPT" -s /bin/bash -c "VEP User" -p '' vep && \ +RUN useradd -r -m -U -d "$OPT" -s /bin/bash -c "VEP User" -p '' vep && \ + chmod a+rx $OPT && \ usermod -a -G sudo vep && \ mkdir -p $OPT_SRC USER vep @@ -198,7 +198,7 @@ RUN curl -O "$PLUGIN_DEPS/ubuntu-packages.txt" && \ rm -rf /var/lib/apt/lists/* ubuntu-packages.txt # - Symlink python to python2 RUN ln -s /usr/bin/python2 /usr/bin/python -#  - Perl modules +# - Perl modules RUN curl -O "$PLUGIN_DEPS/cpanfile" && \ cpanm --installdeps --with-recommends . && \ rm -rf /root/.cpanm cpanfile