From eaf7078d98cbcdd93ca9a21a101794ccc4718340 Mon Sep 17 00:00:00 2001 From: Sergey Krashevich Date: Sat, 29 Jul 2023 05:33:21 +0300 Subject: [PATCH] Refactor Dockerfile to use scratch as base image and add go2rtc binary using ADD command (#7321) --- docker/main/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docker/main/Dockerfile b/docker/main/Dockerfile index 6b9b3f28f..2e06d7353 100644 --- a/docker/main/Dockerfile +++ b/docker/main/Dockerfile @@ -30,11 +30,10 @@ RUN --mount=type=tmpfs,target=/tmp --mount=type=tmpfs,target=/var/cache/apt \ --mount=type=cache,target=/root/.ccache \ /deps/build_nginx.sh -FROM wget AS go2rtc +FROM scratch AS go2rtc ARG TARGETARCH WORKDIR /rootfs/usr/local/go2rtc/bin -RUN wget -qO go2rtc "https://github.com/AlexxIT/go2rtc/releases/download/v1.6.2/go2rtc_linux_${TARGETARCH}" \ - && chmod +x go2rtc +ADD --link --chmod=755 "https://github.com/AlexxIT/go2rtc/releases/download/v1.6.2/go2rtc_linux_${TARGETARCH}" go2rtc ####