/n8n-root

Dockerfiles for n8n: same as upstream, but rootful.

Primary LanguageDockerfileMIT LicenseMIT

n8n-root

Containerfiles for n8n: same as upstream, but rootful.

This is forked from dvisionlab/n8n-root, with minor modifications.

n8n is great, but its Dockerfiles assume that it will be deployed using rootful docker, so user privileges will be dropped and the server will be executed as node user. This is Ok for the general use-case.

If the container is run in rootless mode (e.g. using podman or rootless docker), there is no need for that and it will actually complicate things a bit.

This repo provides a Containerfile to build a n8n container image running as root, to be used in rootless environments. Keeping it up-to-date with upstream is done as a best-effort basis. PR are welcome.

Building

You can build an image with e.g.

VERSION="0.156.0" podman build --build-arg N8N_VERSION=$VERSION -t myn8n:$VERSION .