Update Dockerfile to use AVStack Alpine packages for GStreamer 1.19.x
This commit is contained in:
parent
75d825a7e8
commit
36110cca62
16
Dockerfile
16
Dockerfile
|
@ -1,9 +1,17 @@
|
||||||
FROM docker.io/rust:1.57-alpine3.14 AS builder
|
FROM docker.io/library/alpine:edge AS builder
|
||||||
RUN apk --update --no-cache add build-base pkgconf glib-dev gstreamer-dev libnice-dev openssl-dev
|
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 . .
|
COPY . .
|
||||||
RUN cargo build --release -p gst-meet
|
RUN cargo build --release -p gst-meet
|
||||||
|
|
||||||
FROM docker.io/alpine:3.14
|
FROM docker.io/library/alpine:edge
|
||||||
RUN apk --update --no-cache add glib gstreamer libnice libc6-compat
|
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
|
COPY --from=builder target/release/gst-meet /usr/local/bin
|
||||||
ENTRYPOINT ["/usr/local/bin/gst-meet"]
|
ENTRYPOINT ["/usr/local/bin/gst-meet"]
|
Loading…
Reference in New Issue