Fix permission issue at npm link usage
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 23 Jan 2023 11:03:31 +0000 (12:03 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 23 Jan 2023 11:03:31 +0000 (12:03 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
Dockerfile

index 733941de15673ed61f06d7ef6e01e90a22076f89..3dd48fa500256534275832de98f40551bcb07fa3 100644 (file)
@@ -190,7 +190,7 @@ RUN set -ex \
 # Allow global npm packages install without sudo
 RUN set -ex \
   && mkdir ${USER_HOME_DIR}/.npm-global \
-  && chown ${USER}:${USER} ${USER_HOME_DIR}/.npm-global
+  && chown -R ${USER}:${USER} ${USER_HOME_DIR}
 ENV NPM_CONFIG_PREFIX ${USER_HOME_DIR}/.npm-global
 
 WORKDIR /project