From 8437ba3ced7cd628f8e2812b2ec2cb2b88e02d24 Mon Sep 17 00:00:00 2001 From: Paul Sinclair <24625998+sinclairpaul@users.noreply.github.com> Date: Wed, 23 Sep 2020 11:12:15 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91Build=20motion=20locally=20(#117)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🔨Add build dependencies * 🔨Add run dependencies * 🔨Build motion locally * 🔨Add hadolint exception (./configure) * :pencil2: Tabs to spaces, remove inline comment Co-authored-by: Franck Nijhof --- motioneye/Dockerfile | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/motioneye/Dockerfile b/motioneye/Dockerfile index e2d5db4..646e39a 100755 --- a/motioneye/Dockerfile +++ b/motioneye/Dockerfile @@ -9,23 +9,55 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"] COPY requirements.txt /tmp/ # Setup base +# hadolint ignore=DL3003 RUN \ apk add --no-cache --virtual .build-dependencies \ + autoconf=2.69-r2 \ + automake=1.16.2-r0 \ + build-base=0.5-r2 \ curl-dev=7.69.1-r1 \ + ffmpeg-dev=4.3.1-r0 \ gcc=9.3.0-r2 \ + gettext-dev=0.20.2-r0 \ + git=2.26.2-r0 \ jpeg-dev=9d-r0 \ + libjpeg-turbo-dev=2.0.5-r0 \ + libmicrohttpd-dev=0.9.70-r0 \ + libwebp-dev=1.1.0-r0 \ musl-dev=1.1.24-r9 \ python2-dev=2.7.18-r0 \ \ && apk add --no-cache \ cifs-utils=6.10-r1 \ ffmpeg=4.3.1-r0 \ + ffmpeg-libs=4.3.1-r0 \ libcurl=7.69.1-r1 \ libjpeg=9d-r0 \ + libjpeg-turbo=2.0.5-r0 \ + libintl=0.20.2-r0 \ + libmicrohttpd=0.9.70-r0 \ + libwebp=1.1.0-r0 \ mosquitto-clients=1.6.9-r0 \ - motion@edge=4.3.1-r0 \ nginx=1.18.0-r0 \ python2=2.7.18-r0 \ + v4l-utils=1.20.0-r0 \ + \ + && MOTION_VERSION=4.3.1 \ + && curl -J -L -o /tmp/motion.tar.gz \ + https://github.com/Motion-Project/motion/archive/release-${MOTION_VERSION}.tar.gz \ + && mkdir -p /tmp/motion \ + && tar zxf /tmp/motion.tar.gz -C \ + /tmp/motion --strip-components=1 \ + && cd /tmp/motion \ + && autoreconf -fiv \ + && ./configure \ + --without-pgsql \ + --without-mysql \ + --without-sqlite3 \ + --prefix=/usr \ + --sysconfdir=/etc \ + --without-optimizecpu \ + && make install \ \ && python -m ensurepip \ \