Updat mbt to 1.2.23
[mbt-docker.git] / Dockerfile
index 733941de15673ed61f06d7ef6e01e90a22076f89..f84174dca73273188619389dd739cfbcf9c62139 100644 (file)
@@ -171,7 +171,7 @@ RUN set -ex \
   # smoke test
   && mvn --version
 
-ARG MBT_VERSION=1.2.21
+ARG MBT_VERSION=1.2.23
 
 RUN set -ex \
   && npm install -g --registry=https://int.repositories.cloud.sap/artifactory/api/npm/build-releases-npm --unsafe-perm mbt@${MBT_VERSION} \
@@ -190,7 +190,8 @@ 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
+  && mkdir ${USER_HOME_DIR}/.npm-global/lib \
+  && chown -R ${USER}:${USER} ${USER_HOME_DIR}
 ENV NPM_CONFIG_PREFIX ${USER_HOME_DIR}/.npm-global
 
 WORKDIR /project