mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-29 22:42:00 -08:00
Some checks failed
code_lint / golangci_lint (push) Has been cancelled
code_lint / mod_tidy (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_e2e (push) Has been cancelled
33 lines
1.1 KiB
Docker
33 lines
1.1 KiB
Docker
#################################################################
|
|
FROM --platform=linux/amd64 scratch AS binaries
|
|
|
|
ADD binaries/mediamtx_*_linux_armv6.tar.gz /linux/arm/v6
|
|
ADD binaries/mediamtx_*_linux_armv7.tar.gz /linux/arm/v7
|
|
ADD binaries/mediamtx_*_linux_arm64.tar.gz /linux/arm64
|
|
|
|
#################################################################
|
|
|
|
FROM --platform=linux/arm/v6 balenalib/raspberry-pi:bullseye-run-20240508 AS base-arm-v6
|
|
FROM --platform=linux/arm/v7 balenalib/raspberry-pi:bullseye-run-20240508 AS base-arm-v7
|
|
FROM --platform=linux/arm64 balenalib/raspberrypi3-64:bullseye-run-20240429 AS base-arm64
|
|
|
|
#################################################################
|
|
FROM --platform=linux/amd64 scratch AS base
|
|
|
|
COPY --from=base-arm-v6 / /linux/arm/v6
|
|
COPY --from=base-arm-v7 / /linux/arm/v7
|
|
COPY --from=base-arm64 / /linux/arm64
|
|
|
|
#################################################################
|
|
FROM scratch
|
|
|
|
ARG TARGETPLATFORM
|
|
COPY --from=base /$TARGETPLATFORM /
|
|
|
|
RUN apt update \
|
|
&& apt install -y --no-install-recommends ffmpeg \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY --from=binaries /$TARGETPLATFORM /
|
|
|
|
ENTRYPOINT [ "/mediamtx" ]
|