Skip to content

Commit

Permalink
Remove wheels from final container (blakeblackshear#4395)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipecrs authored and herostrat committed Nov 24, 2022
1 parent 62862bd commit a571577
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# syntax=docker/dockerfile:1.2

FROM blakeblackshear/frigate-nginx:1.0.2 as nginx

FROM debian:11 as wheels
Expand Down Expand Up @@ -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 \
Expand Down Expand Up @@ -112,7 +113,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 \
Expand Down

0 comments on commit a571577

Please sign in to comment.