From 8e786a47f0aa141a2b6e069b635dd19880a1f323 Mon Sep 17 00:00:00 2001 From: nezu <29180158+dumbasPL@users.noreply.github.com> Date: Sat, 1 Oct 2022 18:54:04 +0200 Subject: [PATCH] Add va-api support in docker (#2072) * Add necessary drivers for va-api support in docker * Update Earthfile to match Dockerfile --- Dockerfile | 2 +- Earthfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index bcc36db22..3b3cce4c0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -ldflags "-extldflag # Create the image by copying the result of the build into a new alpine image FROM alpine -RUN apk update && apk add --no-cache ffmpeg ffmpeg-libs ca-certificates && update-ca-certificates +RUN apk update && apk add --no-cache ffmpeg ffmpeg-libs libva-intel-driver mesa-va-gallium mesa-vdpau-gallium intel-media-driver libva-vdpau-driver ca-certificates && update-ca-certificates # Copy owncast assets WORKDIR /app diff --git a/Earthfile b/Earthfile index 06322965c..0b7dc9268 100644 --- a/Earthfile +++ b/Earthfile @@ -121,7 +121,7 @@ docker: ARG tag=develop ARG TARGETPLATFORM FROM --platform=$TARGETPLATFORM alpine:3.15.5 - RUN apk update && apk add --no-cache ffmpeg ffmpeg-libs ca-certificates unzip && update-ca-certificates + RUN apk update && apk add --no-cache ffmpeg ffmpeg-libs libva-intel-driver mesa-va-gallium mesa-vdpau-gallium intel-media-driver ca-certificates unzip && apk add --no-cache libva-vdpau-driver --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community && update-ca-certificates WORKDIR /app COPY --platform=$TARGETPLATFORM +package/owncast.zip /app RUN unzip -x owncast.zip && mkdir data