Hi, i have a question, I can’t seem to find he answer to. I’m self hosting n8n on my local machine, a Mac, using Docker desktop. so far so good.
i have a workflow that require ffmpeg to run but I don’t know how to install ffmpeg on to my instance of n8n running in docker desktop on my local Mac.
i’m am NOT tech savvy, so I’m a little lost here. does anyone have the answer ?
You’ll need to create a custom Docker image with ffmpeg installed,
Here’s how to do it step by step since you have Docker Desktop installed:
1. Create a Dockerfile
Create a new folder on your Mac, for example n8n-with-ffmpeg and inside it create a file called Dockerfile containing:
FROM docker.n8n.io/n8nio/n8n:latest
USER root
RUN apt-get update && apt-get install -y ffmpeg
USER node
2. Build your custom Docker image
Open a terminal, go to the folder where your Dockerfile is:
cd ~/Desktop/n8n-with-ffmpeg
and then run:
docker build -t n8n-with-ffmpeg .
This creates a new Docker image called n8n-with-ffmpeg
3. Run your container using the new image
Now, you can start using n8n using your custom image, use the same configuration you normally use, but replace docker.n8n.io/n8nio/n8n with n8n-with-ffmpeg:
ERROR: failed to build: failed to solve: process “/bin/sh -c apt-get update && apt-get install -y ffmpeg” did not complete successfully: exit code: 127