2016-01-03 07:23:48 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for motion-arm
|
|
|
|
#
|
|
|
|
|
2020-05-21 12:24:00 +02:00
|
|
|
FROM arm32v7/debian:buster
|
2016-04-05 16:03:30 +02:00
|
|
|
MAINTAINER EasyPi Software Foundation
|
2016-01-03 07:23:48 +02:00
|
|
|
|
2020-05-21 12:24:00 +02:00
|
|
|
ENV MOTION_VERSION=4.3.1
|
|
|
|
ENV MOTION_FILE=pi_buster_motion_${MOTION_VERSION}-1_armhf.deb
|
|
|
|
ENV MOTION_URL=https://github.com/Motion-Project/motion/releases/download/release-${MOTION_VERSION}/${MOTION_FILE}
|
2017-05-31 11:09:30 +02:00
|
|
|
|
2016-01-03 07:23:48 +02:00
|
|
|
RUN set -xe \
|
|
|
|
&& apt-get update \
|
2020-05-21 13:03:38 +02:00
|
|
|
&& apt-get install -y curl gnupg mosquitto-clients openssh-client \
|
|
|
|
&& echo "deb http://archive.raspberrypi.org/debian/ buster main" > /etc/apt/sources.list.d/raspi.list \
|
|
|
|
&& curl -sSL "http://archive.raspberrypi.org/debian/raspberrypi.gpg.key" | apt-key add - \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get install -y libraspberrypi0 \
|
2017-05-31 11:09:30 +02:00
|
|
|
&& curl -sSL ${MOTION_URL} -o ${MOTION_FILE} \
|
|
|
|
&& (dpkg -i ${MOTION_FILE} || apt-get -f install -y) \
|
2016-01-03 07:23:48 +02:00
|
|
|
&& sed -i -e 's/^daemon on/daemon off/' \
|
|
|
|
-e 's/^webcontrol_localhost on/webcontrol_localhost off/' \
|
|
|
|
-e 's/^stream_localhost on/stream_localhost off/' \
|
2017-06-03 09:19:00 +02:00
|
|
|
-e 's/^output_pictures on/output_pictures off/' \
|
2016-01-03 07:23:48 +02:00
|
|
|
/etc/motion/motion.conf \
|
2017-05-31 11:09:30 +02:00
|
|
|
&& rm -rf ${MOTION_FILE} /var/lib/apt/lists/*
|
2016-01-03 07:23:48 +02:00
|
|
|
|
|
|
|
VOLUME /var/lib/motion
|
2017-05-31 11:09:30 +02:00
|
|
|
WORKDIR /var/lib/motion
|
2016-01-03 07:23:48 +02:00
|
|
|
|
|
|
|
EXPOSE 8080 8081
|
|
|
|
|
2017-05-31 11:09:30 +02:00
|
|
|
ENTRYPOINT ["motion"]
|