Skip to content

Commit

Permalink
Merge pull request #1585 from nuno-agostinho/fix/singularity-permissions
Browse files Browse the repository at this point in the history
Fix Singularity: create home dir with expected permissions
  • Loading branch information
likhitha-surapaneni authored Jan 16, 2024
2 parents d69b70d + a365f6e commit 6fccc5e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 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

# Copy downloaded libraries (stage 1) to this image (stage 2)
Expand Down Expand Up @@ -195,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
Expand Down

0 comments on commit 6fccc5e

Please sign in to comment.