From 1bd009c11771512de098fe92a5f57ca88ba8177f Mon Sep 17 00:00:00 2001 From: Marc Boehm Date: Tue, 20 May 2025 17:45:48 +0200 Subject: [PATCH] Remove custom node --- Dockerfile | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index e211c1f..b6055d3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,20 +15,17 @@ RUN apt-get update -y && \ ca-certificates \ build-essential -# Set a custom user to not have n8n run as root -USER node - # Install n8n and the also temporary all the packages # it needs to build it correctly. RUN N8N_VERSION=$(curl -s https://api.github.com/repos/n8n-io/n8n/releases/latest | jq -r '.tag_name' | sed 's/^v//') && \ echo "Latest n8n version: ${N8N_VERSION}" && \ npm_config_user=root npm install -g \ ${N8N_VERSION} && \ - apt-get clean all && \ - mkdir -p ~/.n8n/nodes && \ - cd ~/.n8n/nodes && \ - npm install n8n-nodes-imap - + apt-get clean all + +# Set a custom user to not have n8n run as root +USER node + WORKDIR /data CMD ["n8n"] \ No newline at end of file