chore: update dockerfile
This commit is contained in:
+7
-3
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user