From 766b64bd197eb7d5c26b79f1e25c245438cc9b36 Mon Sep 17 00:00:00 2001 From: Marc Boehm Date: Tue, 20 May 2025 17:11:20 +0200 Subject: [PATCH] Adjust home creation --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 61b7d66..7e613b8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,10 @@ RUN apt-get update -y && \ python3 \ ca-certificates \ build-essential && \ - useradd -r -U -M -c "captica Service User" captica + useradd -r -U -c "captica Service User" -m captica + +# Set a custom user to not have n8n run as root +USER captica # Install n8n and the also temporary all the packages # it needs to build it correctly. @@ -23,9 +26,6 @@ RUN N8N_VERSION=$(curl -s https://api.github.com/repos/n8n-io/n8n/releases/lates npm_config_user=root npm install -g ${N8N_VERSION} && \ apt-get clean all -# Set a custom user to not have n8n run as root -USER captica - WORKDIR /data CMD ["n8n"] \ No newline at end of file