Latest and 2.3.1 docker images do not include package manager (apk)

This is an issue that many of us have run into recently especially if you rely on tools like ffmpeg or use custom images in general,

So far, the easiest solution is to restore apk without hard-coding URLs, as discussed here:

FROM alpine:latest AS alpine

FROM n8nio/n8n:latest

# Copy apk and its deps from Alpine

COPY --from=alpine /sbin/apk /sbin/apk

COPY --from=alpine /usr/lib/libapk.so* /usr/lib/

USER root

RUN apk add --no-cache ffmpeg

USER node

This solution is for the main n8n instance, but you can also tweak it to apply only to runners..

Hopefully, n8n will address this properly soon by providing alternative image tags..