chore: update dockerfile
This commit is contained in:
+7
-3
@@ -11,21 +11,25 @@
|
||||
FROM ubuntu:24.04
|
||||
|
||||
# Install Node.js, FFmpeg, and hardware acceleration drivers
|
||||
ARG TARGETARCH
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
curl \
|
||||
ca-certificates \
|
||||
gnupg \
|
||||
&& 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 \
|
||||
nodejs \
|
||||
ffmpeg \
|
||||
python3 \
|
||||
make \
|
||||
g++ \
|
||||
mesa-va-drivers \
|
||||
intel-media-va-driver \
|
||||
vainfo \
|
||||
$DRIVERS \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Verify FFmpeg installed
|
||||
|
||||
Reference in New Issue
Block a user