Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion images/n8n-debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ USER root
RUN npm_config_user=root npm install -g full-icu n8n@${N8N_VERSION}

# Install n8n-nodes-python module
RUN cd /usr/lib/node_modules/n8n && npm install n8n-nodes-python
RUN npm install n8n-nodes-python --prefix /home/node/custom/.n8n/nodes/ && mkdir /home/node/.n8n

ENV NODE_ICU_DATA /usr/lib/node_modules/full-icu

Expand Down
10 changes: 6 additions & 4 deletions images/n8n-debian/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/bin/sh

if [ -d /root/.n8n ] ; then
chmod o+rx /root
chown -R node /root/.n8n
ln -s /root/.n8n /home/node/
if [ -d /home/node/custom/.n8n/nodes/ ] ; then
chmod o+rx /home/node/custom
chown -R node /home/node/custom/.n8n/
ln -s /home/node/custom/.n8n/nodes/ /home/node/.n8n/
fi

chown -R node /home/node

if [ "$#" -gt 0 ]; then
# Got started with arguments
exec gosu node "$@"
Expand Down
2 changes: 1 addition & 1 deletion images/n8n/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN apk --update add --virtual build-dependencies build-base ca-certificates &&
&& rm -rf /root /tmp/* /var/cache/apk/* && mkdir /root;

# Install n8n-nodes-python module
RUN cd /usr/local/lib/node_modules/n8n && npm install n8n-nodes-python
RUN npm install n8n-nodes-python --prefix /home/node/custom/.n8n/nodes/ && mkdir /home/node/.n8n

# Install fonts
RUN apk --no-cache add --virtual fonts msttcorefonts-installer fontconfig && \
Expand Down
8 changes: 4 additions & 4 deletions images/n8n/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/bin/sh

if [ -d /root/.n8n ] ; then
chmod o+rx /root
chown -R node /root/.n8n
ln -s /root/.n8n /home/node/
if [ -d /home/node/custom/.n8n/nodes/ ] ; then
chmod o+rx /home/node/custom
chown -R node /home/node/custom/.n8n/
ln -s /home/node/custom/.n8n/nodes/ /home/node/.n8n/
fi

chown -R node /home/node
Expand Down