Test user context
All checks were successful
Build Pipeline for de.captica.n8n / Publish Docker (push) Successful in 3m32s
All checks were successful
Build Pipeline for de.captica.n8n / Publish Docker (push) Successful in 3m32s
This commit is contained in:
@@ -16,9 +16,6 @@ RUN apt-get update -y && \
|
|||||||
build-essential && \
|
build-essential && \
|
||||||
useradd -r -U -M -c "captica Service User" captica
|
useradd -r -U -M -c "captica Service User" captica
|
||||||
|
|
||||||
# # Set a custom user to not have n8n run as root
|
|
||||||
USER captica
|
|
||||||
|
|
||||||
# Install n8n and the also temporary all the packages
|
# Install n8n and the also temporary all the packages
|
||||||
# it needs to build it correctly.
|
# 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//') && \
|
RUN N8N_VERSION=$(curl -s https://api.github.com/repos/n8n-io/n8n/releases/latest | jq -r '.tag_name' | sed 's/^v//') && \
|
||||||
@@ -26,6 +23,8 @@ RUN N8N_VERSION=$(curl -s https://api.github.com/repos/n8n-io/n8n/releases/lates
|
|||||||
npm_config_user=root npm install -g ${N8N_VERSION} && \
|
npm_config_user=root npm install -g ${N8N_VERSION} && \
|
||||||
apt-get clean all
|
apt-get clean all
|
||||||
|
|
||||||
|
# Set a custom user to not have n8n run as root
|
||||||
|
USER captica
|
||||||
|
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user