From 76a6f806ae9ea0589668c996c7a6ea090a139758 Mon Sep 17 00:00:00 2001 From: Yury Molodov <yurymolodov@gmail.com> Date: Wed, 6 Mar 2024 13:06:41 +0100 Subject: [PATCH] vmui: configure npm cache path to resolve EACCES issues on macOS. (#5928) --- app/vmui/Dockerfile-build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/vmui/Dockerfile-build b/app/vmui/Dockerfile-build index 9d1d1e4300..9c50fbf35c 100644 --- a/app/vmui/Dockerfile-build +++ b/app/vmui/Dockerfile-build @@ -1,5 +1,8 @@ FROM node:18-alpine3.17 +# Sets a custom location for the npm cache, preventing access errors in system directories +ENV NPM_CONFIG_CACHE=/build/.npm + RUN apk update && apk upgrade RUN apk add --no-cache bash bash-doc bash-completion libtool autoconf automake nasm pkgconfig libpng gcc make g++ zlib-dev gawk