Adjust home creation
Some checks failed
Build Pipeline for de.captica.n8n / Publish Docker (push) Failing after 1m22s

This commit is contained in:
Marc Boehm
2025-05-20 17:11:20 +02:00
parent 3395396b66
commit 766b64bd19

View File

@@ -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"]