Remove custom node
All checks were successful
Build Pipeline for de.captica.n8n / Publish Docker (push) Successful in 2m49s
All checks were successful
Build Pipeline for de.captica.n8n / Publish Docker (push) Successful in 2m49s
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -15,20 +15,17 @@ RUN apt-get update -y && \
|
|||||||
ca-certificates \
|
ca-certificates \
|
||||||
build-essential
|
build-essential
|
||||||
|
|
||||||
# Set a custom user to not have n8n run as root
|
|
||||||
USER node
|
|
||||||
|
|
||||||
# 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//') && \
|
||||||
echo "Latest n8n version: ${N8N_VERSION}" && \
|
echo "Latest n8n version: ${N8N_VERSION}" && \
|
||||||
npm_config_user=root npm install -g \
|
npm_config_user=root npm install -g \
|
||||||
${N8N_VERSION} && \
|
${N8N_VERSION} && \
|
||||||
apt-get clean all && \
|
apt-get clean all
|
||||||
mkdir -p ~/.n8n/nodes && \
|
|
||||||
cd ~/.n8n/nodes && \
|
# Set a custom user to not have n8n run as root
|
||||||
npm install n8n-nodes-imap
|
USER node
|
||||||
|
|
||||||
WORKDIR /data
|
WORKDIR /data
|
||||||
|
|
||||||
CMD ["n8n"]
|
CMD ["n8n"]
|
||||||
Reference in New Issue
Block a user