fix: Docker build push stable fix (no-changelog) (#16958)

This commit is contained in:
shortstacked
2025-07-03 14:45:48 +01:00
committed by GitHub
parent bf926ce87e
commit 60e78a4fec
3 changed files with 30 additions and 11 deletions

View File

@@ -228,15 +228,33 @@ docker run -it --rm \
For more information on configuration and environment variables, please see the [n8n documentation](https://docs.n8n.io/hosting/configuration/environment-variables/).
## Build Docker-Image
Here's the refined version with good Markdown formatting, ready for your `README`:
## Build Docker Image
**Important Note for Releases 1.101.0 and Later:**
Building the n8n Docker image now requires a pre-compiled n8n application.
### Recommended Build Process:
For the simplest approach that handles both n8n compilation and Docker image creation, run from the root directory:
```bash
docker buildx build --platform linux/amd64,linux/arm64 --build-arg N8N_VERSION=<VERSION> -t n8n:<VERSION> .
# For example:
docker buildx build --platform linux/amd64,linux/arm64 --build-arg N8N_VERSION=1.30.1 -t n8n:1.30.1 .
pnpm build:docker
```
### Alternative Builders:
If you are using a different build system that requires a separate build context, first compile the n8n application:
```bash
pnpm run build:deploy
```
Then, ensure your builder's context includes the `compiled` directory generated by this command.
## What does n8n mean and how do you pronounce it?
**Short answer:** It means "nodemation" and it is pronounced as n-eight-n.