From 664e04836d79465b93749e3e66a86504bf465eab Mon Sep 17 00:00:00 2001 From: Felipe Santos Date: Wed, 16 Nov 2022 09:27:37 -0300 Subject: [PATCH] Remove wheels from final container (#4395) --- docker/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 5e3c592c4..420bf3c54 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,3 +1,5 @@ +# syntax=docker/dockerfile:1.2 + FROM blakeblackshear/frigate-nginx:1.0.2 as nginx FROM debian:11 as wheels @@ -55,10 +57,9 @@ ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility" ENV FLASK_ENV=development -COPY --from=wheels /wheels /wheels - # Install ffmpeg -RUN apt-get -qq update \ +RUN --mount=type=bind,from=wheels,source=/wheels,target=/wheels \ + apt-get -qq update \ && apt-get -qq install --no-install-recommends -y \ apt-transport-https \ gnupg \ @@ -110,7 +111,6 @@ RUN apt-get -qq update \ libtbb2 libtbb-dev libdc1394-22-dev libopenexr-dev \ libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev; \ fi \ - && rm -rf /wheels \ && apt-get remove gnupg apt-transport-https -y \ && apt-get clean autoclean -y \ && apt-get autoremove -y \