Files
de.captica.n8n/Dockerfile
Marc Boehm 297fab5eb8
All checks were successful
Build Pipeline for de.captica.n8n / Publish Docker (push) Successful in 3m38s
Add missing node
2025-05-20 17:22:38 +02:00

32 lines
787 B
Docker

FROM node:22-slim
# Update everything and install needed dependencies
RUN apt-get update -y && \
apt-get upgrade -y && \
apt-get install -y -q \
graphicsmagick \
tzdata \
curl \
jq \
sed \
python3 \
ca-certificates \
build-essential
# Set a custom user to not have n8n run as root
USER root
# Install n8n and the also temporary all the packages
# 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//') && \
echo "Latest n8n version: ${N8N_VERSION}" && \
npm_config_user=root npm install -g \
${N8N_VERSION} \
n8n-nodes-imap && \
apt-get clean all
WORKDIR /data
CMD ["n8n"]