From: Jérôme Benoit Date: Fri, 20 Jan 2023 16:56:27 +0000 (+0100) Subject: Fix npm global directory owner X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6366827a60b0d99a99f80f86f2b083864d2c02b3;p=mbt-docker.git Fix npm global directory owner Signed-off-by: Jérôme Benoit --- diff --git a/Dockerfile b/Dockerfile index 8d4d407..30832c3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -188,7 +188,8 @@ RUN set -ex \ && python3 --version # Allow global npm packages install without sudo -RUN mkdir ${USER_HOME_DIR}/.npm-global +RUN mkdir ${USER_HOME_DIR}/.npm-global \ + && chown ${USER}:${USER} ${USER_HOME_DIR}/.npm-global ENV NPM_CONFIG_PREFIX ${USER_HOME_DIR}/.npm-global WORKDIR /project