diff --git a/docker/images/n8n/docker-entrypoint.sh b/docker/images/n8n/docker-entrypoint.sh index fa81b3713c..c2a42b6203 100755 --- a/docker/images/n8n/docker-entrypoint.sh +++ b/docker/images/n8n/docker-entrypoint.sh @@ -6,7 +6,9 @@ if [ -d /root/.n8n ] ; then ln -s /root/.n8n /home/node/ fi -chown -R node /home/node +# node user needs to be able to write in this folder to be able to customize static assets +mkdir -p /usr/local/lib/node_modules/n8n/dist/public +chown -R node /home/node /usr/local/lib/node_modules/n8n/dist/public if [ "$#" -gt 0 ]; then # Got started with arguments