From: Pablo Zmdl Date: Fri, 23 May 2025 16:14:01 +0000 (+0200) Subject: Create NPM's home directory so it can write cache files and logs X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=de20239b7fd2fdb91288ac1ed9df766073f4f6cd;p=roundcube-roundcubemail-docker.git Create NPM's home directory so it can write cache files and logs --- diff --git a/development/Dockerfile b/development/Dockerfile index d4aba85..596c04d 100644 --- a/development/Dockerfile +++ b/development/Dockerfile @@ -18,6 +18,8 @@ RUN install -d -o www-data -g www-data /var/roundcube # Pre-download js dependencies (these don't change much over time). ENV CACHEDIR=/var/cache/roundcubemail/jsdeps RUN install -o www-data -d "$CACHEDIR" +# Create NPM's home directory so it can write cache files and logs. +RUN install -o www-data -d /var/www/.npm USER www-data