From 36110cca62ba77366a0bd648de02170f4dbff795 Mon Sep 17 00:00:00 2001 From: Jasper Hugo Date: Wed, 15 Dec 2021 18:05:42 +0700 Subject: [PATCH] Update Dockerfile to use AVStack Alpine packages for GStreamer 1.19.x --- Dockerfile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index c03451b..77800b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,17 @@ -FROM docker.io/rust:1.57-alpine3.14 AS builder -RUN apk --update --no-cache add build-base pkgconf glib-dev gstreamer-dev libnice-dev openssl-dev +FROM docker.io/library/alpine:edge AS builder +RUN apk --no-cache --update upgrade --ignore alpine-baselayout \ + && apk --no-cache add curl \ + && curl -fL https://apk.avstack.net/avstack.rsa.pub -o "/etc/apk/keys/$(basename $(curl -LI --silent -w '%{url_effective}' https://apk.avstack.net/avstack.rsa.pub | tail -n 1))" \ + && apk --no-cache -X https://apk.avstack.net/main add gstreamer-dev gst-plugins-base-dev \ + && apk --no-cache add build-base libnice-dev openssl-dev cargo COPY . . RUN cargo build --release -p gst-meet -FROM docker.io/alpine:3.14 -RUN apk --update --no-cache add glib gstreamer libnice libc6-compat +FROM docker.io/library/alpine:edge +RUN apk --update --no-cache upgrade --ignore alpine-baselayout \ + && apk --no-cache add curl \ + && curl -fL https://apk.avstack.net/avstack.rsa.pub -o "/etc/apk/keys/$(basename $(curl -LI --silent -w '%{url_effective}' https://apk.avstack.net/avstack.rsa.pub | tail -n 1))" \ + && apk --no-cache -X https://apk.avstack.net/main -X https://apk.avstack.net/community add gstreamer gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav \ + && apk --no-cache add libnice openssl COPY --from=builder target/release/gst-meet /usr/local/bin ENTRYPOINT ["/usr/local/bin/gst-meet"] \ No newline at end of file