Add current node LTS version to the images list
[mbt-docker.git] / Dockerfile
index 47cfd7bf2acb32d056ca8d9701fdc28966d151dd..fd929773639f9342c5418917ab6dc3d1ee7f6cf3 100644 (file)
@@ -1,4 +1,4 @@
-FROM --platform=amd64 debian:bullseye-slim
+FROM debian:bullseye-slim
 
 ARG USER="mta"
 ARG USER_HOME_DIR="/home/${USER}"
@@ -21,7 +21,7 @@ RUN set -ex \
 ADD http://aia.pki.co.sap.com/aia/SAP%20Global%20Root%20CA.crt \
     /etc/ssl/certs/SAP_Global_Root_CA.crt
 
-ARG NODE_VERSION=16.17.1
+ARG NODE_VERSION=16.18.0
 
 RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \
     && case "${dpkgArch##*-}" in \
@@ -156,7 +156,8 @@ RUN set -ex \
 ARG MBT_VERSION=1.2.18
 
 RUN set -ex \
-  && npm install -g mbt@${MBT_VERSION} \
+  && npm install -g --unsafe-perm mbt@${MBT_VERSION} \
+  && npm cache clean -g --force \
   # smoke test
   && mbt --version