From cf58ca4593522125b3ea74dbecfb822ab3aacb83 Mon Sep 17 00:00:00 2001 From: Marcus Klein Date: Fri, 25 Aug 2017 17:43:32 +0200 Subject: [PATCH] Fixed failure of wrong path for extra directory. Improved package installation to require less space in resulting image. --- extra/Dockerfile | 52 +++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/extra/Dockerfile b/extra/Dockerfile index b9dd8c4..f309531 100644 --- a/extra/Dockerfile +++ b/extra/Dockerfile @@ -1,6 +1,5 @@ - FROM ubuntu:15.04 -MAINTAINER Conor Heine +LABEL maintainer="Conor Heine " ENV DEBIAN_FRONTEND noninteractive @@ -11,29 +10,29 @@ ENV LANG en_US.UTF-8 ENV LC_TYPE en_US.UTF-8 ENV TZ America/Los_Angeles -RUN apt-get update && \ - apt-get --yes install \ - automake \ - curl \ - autoconf \ - build-essential \ - ffmpeg \ - git \ - libav-tools \ - libavcodec-dev \ - libavformat-dev \ - libavutil-dev \ - libcurl4-openssl-dev \ - libjpeg-dev \ - libssl-dev \ - libswscale-dev \ - pkgconf \ - python-dev \ - python-pip \ - python-setuptools \ - subversion \ - v4l-utils && \ - apt-get clean +RUN apt-get --quiet update && \ + DEBIAN_FRONTEND="noninteractive" apt-get --quiet --yes --option Dpkg::Options::="--force-confnew" --no-install-recommends install \ + automake \ + autoconf \ + build-essential \ + ffmpeg \ + git \ + libav-tools \ + libavcodec-dev \ + libavformat-dev \ + libavutil-dev \ + libcurl4-openssl-dev \ + libjpeg-dev \ + libssl-dev \ + libswscale-dev \ + pkgconf \ + python-dev \ + python-pip \ + python-setuptools \ + subversion \ + v4l-utils && \ + apt-get --quiet autoremove && \ + apt-get --quiet --yes clean && rm -rf /var/lib/apt/lists/* && rm -f /var/cache/apt/*.bin # Pip RUN pip install tornado jinja2 pillow pycurl @@ -59,11 +58,10 @@ VOLUME /var/run/motion # Video & images VOLUME /var/lib/motioneye -ADD extra /usr/share/motioneye/extra/ +ADD motioneye.conf.sample /usr/share/motioneye/extra/ CMD test -e /etc/motioneye/motioneye.conf || \ cp /usr/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf ; \ /usr/local/bin/meyectl startserver -c /etc/motioneye/motioneye.conf EXPOSE 8765 - -- 2.39.5