Update Dockerfile to use AVStack Alpine packages for GStreamer 1.19.x

This commit is contained in:
Jasper Hugo 2021-12-15 18:05:42 +07:00
parent 75d825a7e8
commit 36110cca62
1 changed files with 12 additions and 4 deletions

View File

@ -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"]