remove tools needed only for installation after motioneye installation
authorMarcus Klein <marcus.klein@open-xchange.com>
Mon, 28 Aug 2017 12:59:52 +0000 (14:59 +0200)
committerMarcus Klein <himself@kleini.org>
Sun, 5 Nov 2017 09:07:04 +0000 (10:07 +0100)
extra/Dockerfile

index d59ad0a268109a08613215f44699efacf13c946d..aeb7510514de57de84af79a8ac55bdce06c6df1c 100644 (file)
@@ -13,11 +13,15 @@ RUN apt-get --quiet update && \
     python-tornado \
     python-wheel \
     v4l-utils && \
+    pip install motioneye && \
+    apt-get purge --yes \
+    python-pip \
+    python-setuptools \
+    python-wheel && \
+    apt-get autoremove --yes && \
     apt-get --quiet autoremove && \
     apt-get --quiet --yes clean && rm -rf /var/lib/apt/lists/* && rm -f /var/cache/apt/*.bin
 
-RUN pip install motioneye
-
 # R/W needed for motioneye to update configurations
 VOLUME /etc/motioneye