Here’s a possible solution: n8n 2.1.0 alpine missing apk causing custom builds to fail · Issue #23246 · n8n-io/n8n · GitHub
# Reinstall apk-tools since n8n removes it
RUN ARCH=$(uname -m) && \
wget -qO- "http://dl-cdn.alpinelinux.org/alpine/latest-stable/main/${ARCH}/" | \
grep -o 'href="apk-tools-static-[^"]*\.apk"' | head -1 | cut -d'"' -f2 | \
xargs -I {} wget -q "http://dl-cdn.alpinelinux.org/alpine/latest-stable/main/${ARCH}/{}" && \
tar -xzf apk-tools-static-*.apk && \
./sbin/apk.static -X http://dl-cdn.alpinelinux.org/alpine/latest-stable/main \
-U --allow-untrusted add apk-tools && \
rm -rf sbin apk-tools-static-*.apk
# Now apk works normally
RUN apk add --no-cache ffmpeg pipx
USER node