mirror of
https://github.com/kossakovsky/n8n-install.git
synced 2026-03-07 22:33:11 +00:00
fix(n8n): use static ffmpeg for alpine compatibility
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
# Stage 1: Get static ffmpeg binaries (statically linked, works on Alpine/musl)
|
||||
FROM mwader/static-ffmpeg:latest AS ffmpeg
|
||||
|
||||
# Stage 2: Build final n8n image with ffmpeg
|
||||
FROM n8nio/n8n:stable
|
||||
|
||||
USER root
|
||||
# Install static ffmpeg binary from BtbN GitHub releases
|
||||
RUN wget -qO- --tries=3 --timeout=60 https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-linux64-gpl.tar.xz | \
|
||||
tar -xJC /tmp && \
|
||||
mv /tmp/ffmpeg-master-latest-linux64-gpl/bin/ffmpeg /tmp/ffmpeg-master-latest-linux64-gpl/bin/ffprobe /usr/local/bin/ && \
|
||||
rm -rf /tmp/ffmpeg-*
|
||||
# Copy static ffmpeg binaries from the ffmpeg stage
|
||||
COPY --from=ffmpeg /ffmpeg /usr/local/bin/ffmpeg
|
||||
COPY --from=ffmpeg /ffprobe /usr/local/bin/ffprobe
|
||||
USER node
|
||||
|
||||
Reference in New Issue
Block a user