Skip to content
Merged
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
13 changes: 7 additions & 6 deletions Dockerfile.n8n
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM n8nio/n8n:1.89.2
FROM n8nio/n8n:1.109.2

# Define build arguments
ARG NODE_ENV=production
Expand All @@ -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=2.49.1-r0 && \
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"
Expand All @@ -31,4 +32,4 @@ USER node

EXPOSE ${N8N_PORT}
# The entrypoint script is already defined in the base image
# Don't override the CMD
# Don't override the CMD