mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Remove wheels from final container (#4395)
This commit is contained in:
parent
c97aac6c94
commit
664e04836d
@ -1,3 +1,5 @@
|
|||||||
|
# syntax=docker/dockerfile:1.2
|
||||||
|
|
||||||
FROM blakeblackshear/frigate-nginx:1.0.2 as nginx
|
FROM blakeblackshear/frigate-nginx:1.0.2 as nginx
|
||||||
|
|
||||||
FROM debian:11 as wheels
|
FROM debian:11 as wheels
|
||||||
@ -55,10 +57,9 @@ ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
|
|||||||
|
|
||||||
ENV FLASK_ENV=development
|
ENV FLASK_ENV=development
|
||||||
|
|
||||||
COPY --from=wheels /wheels /wheels
|
|
||||||
|
|
||||||
# Install ffmpeg
|
# 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-get -qq install --no-install-recommends -y \
|
||||||
apt-transport-https \
|
apt-transport-https \
|
||||||
gnupg \
|
gnupg \
|
||||||
@ -110,7 +111,6 @@ RUN apt-get -qq update \
|
|||||||
libtbb2 libtbb-dev libdc1394-22-dev libopenexr-dev \
|
libtbb2 libtbb-dev libdc1394-22-dev libopenexr-dev \
|
||||||
libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev; \
|
libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev; \
|
||||||
fi \
|
fi \
|
||||||
&& rm -rf /wheels \
|
|
||||||
&& apt-get remove gnupg apt-transport-https -y \
|
&& apt-get remove gnupg apt-transport-https -y \
|
||||||
&& apt-get clean autoclean -y \
|
&& apt-get clean autoclean -y \
|
||||||
&& apt-get autoremove -y \
|
&& apt-get autoremove -y \
|
||||||
|
Loading…
Reference in New Issue
Block a user