chore: update dockerfile

This commit is contained in:
Trevor Mears
2026-01-18 20:53:57 -08:00
parent 358854ad7a
commit 877c6f8df9
+7 -3
View File
@@ -11,21 +11,25 @@
FROM ubuntu:24.04 FROM ubuntu:24.04
# Install Node.js, FFmpeg, and hardware acceleration drivers # Install Node.js, FFmpeg, and hardware acceleration drivers
ARG TARGETARCH
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
curl \ curl \
ca-certificates \ ca-certificates \
gnupg \ gnupg \
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& if [ "$TARGETARCH" = "amd64" ]; then \
DRIVERS="mesa-va-drivers intel-media-va-driver vainfo"; \
else \
DRIVERS=""; \
fi \
&& apt-get update && apt-get install -y --no-install-recommends \ && apt-get update && apt-get install -y --no-install-recommends \
nodejs \ nodejs \
ffmpeg \ ffmpeg \
python3 \ python3 \
make \ make \
g++ \ g++ \
mesa-va-drivers \ $DRIVERS \
intel-media-va-driver \
vainfo \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Verify FFmpeg installed # Verify FFmpeg installed