# Use the official n8n image as a base FROM n8nio/n8n:latest # Switch to the root user to install packages USER root # Install docker-cli using the apk package manager RUN apk add --no-cache docker-cli # Install Python, pip, and required build dependencies RUN apk add --no-cache python3 py3-pip build-base # Install required Python packages RUN pip install netmiko --break-system-packages # Switch back to the non-privileged node user USER node