From 558714adbe23f9948a599ec683066fa41e1ce3df Mon Sep 17 00:00:00 2001 From: anatolyshipitz <30830673+anatolyshipitz@users.noreply.github.com> Date: Wed, 3 Sep 2025 11:35:40 +0200 Subject: [PATCH 1/3] Update Dockerfile.n8n to use n8n version 1.109.2 and install additional packages - Upgraded base image from n8nio/n8n:1.89.2 to n8nio/n8n:1.109.2. - Added installation of showdown and slackify-markdown packages with specified versions. - Combined package installations into a single layer for efficiency. - Configured external modules allowlist for Code/Function nodes. These changes enhance the n8n environment by ensuring compatibility with newer package versions and improving the installation process. --- Dockerfile.n8n | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile.n8n b/Dockerfile.n8n index 3a76429..74ac5b4 100644 --- a/Dockerfile.n8n +++ b/Dockerfile.n8n @@ -1,4 +1,4 @@ -FROM n8nio/n8n:1.89.2 +FROM n8nio/n8n:1.109.2 # Define build arguments ARG NODE_ENV=production @@ -9,12 +9,13 @@ ARG SLACKIFY_MARKDOWN_VERSION=^4.5.0 # Install git for backup script and other packages + install external packages in one layer USER root RUN set -eux; \ - apk add --no-cache git=2.47.3-r0 && \ - npm install --no-audit --no-fund --ignore-scripts --prefix /usr/local/lib/node_modules/n8n \ + apk add --no-cache git && \ + npm install -g --no-audit --no-fund --ignore-scripts \ + --legacy-peer-deps --no-workspaces \ + --unsafe-perm \ showdown@${SHOWDOWN_VERSION} \ slackify-markdown@${SLACKIFY_MARKDOWN_VERSION} && \ - npm cache clean --force && \ - chown -R node:node /usr/local/lib/node_modules/n8n + npm cache clean --force # Configure external modules allowlist used by Code/Function nodes ENV NODE_FUNCTION_ALLOW_EXTERNAL="showdown,slackify-markdown" @@ -31,4 +32,4 @@ USER node EXPOSE ${N8N_PORT} # The entrypoint script is already defined in the base image -# Don't override the CMD \ No newline at end of file +# Don't override the CMD From f1d6951fad987548a620141c424f33d162a34175 Mon Sep 17 00:00:00 2001 From: anatolyshipitz <30830673+anatolyshipitz@users.noreply.github.com> Date: Wed, 3 Sep 2025 11:42:24 +0200 Subject: [PATCH 2/3] Update Dockerfile.n8n to specify git version for compatibility - Changed the git installation in the Dockerfile to a specific version (2.43.0-r0) to ensure compatibility with the backup script. - This update enhances the stability of the n8n environment by preventing potential issues with newer git versions. --- Dockerfile.n8n | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.n8n b/Dockerfile.n8n index 74ac5b4..da00677 100644 --- a/Dockerfile.n8n +++ b/Dockerfile.n8n @@ -9,7 +9,7 @@ ARG SLACKIFY_MARKDOWN_VERSION=^4.5.0 # Install git for backup script and other packages + install external packages in one layer USER root RUN set -eux; \ - apk add --no-cache git && \ + apk add --no-cache git=2.43.0-r0 && \ npm install -g --no-audit --no-fund --ignore-scripts \ --legacy-peer-deps --no-workspaces \ --unsafe-perm \ From c9051e3cff0b908d9fdad40bcfa88541b0ee8389 Mon Sep 17 00:00:00 2001 From: anatolyshipitz <30830673+anatolyshipitz@users.noreply.github.com> Date: Wed, 3 Sep 2025 11:46:02 +0200 Subject: [PATCH 3/3] Update Dockerfile.n8n --- Dockerfile.n8n | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.n8n b/Dockerfile.n8n index da00677..b8c58ba 100644 --- a/Dockerfile.n8n +++ b/Dockerfile.n8n @@ -9,7 +9,7 @@ ARG SLACKIFY_MARKDOWN_VERSION=^4.5.0 # Install git for backup script and other packages + install external packages in one layer USER root RUN set -eux; \ - apk add --no-cache git=2.43.0-r0 && \ + apk add --no-cache git=2.49.1-r0 && \ npm install -g --no-audit --no-fund --ignore-scripts \ --legacy-peer-deps --no-workspaces \ --unsafe-perm \