mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-06-12 23:47:32 +02:00
upgrade motion-arm to 4.0.1
This commit is contained in:
parent
f15fd9edf0
commit
0d10c9487e
@ -2,21 +2,27 @@
|
|||||||
# Dockerfile for motion-arm
|
# Dockerfile for motion-arm
|
||||||
#
|
#
|
||||||
|
|
||||||
FROM resin/rpi-raspbian
|
FROM resin/rpi-raspbian:jessie
|
||||||
|
|
||||||
MAINTAINER EasyPi Software Foundation
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
|
ENV MOTION_VERSION 4.0.1
|
||||||
|
ENV MOTION_FILE pi_jessie_motion_${MOTION_VERSION}-1_armhf.deb
|
||||||
|
ENV MOTION_URL https://github.com/Motion-Project/motion/releases/download/release-${MOTION_VERSION}/${MOTION_FILE}
|
||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get install -y motion \
|
&& apt-get install -y curl \
|
||||||
|
&& curl -sSL ${MOTION_URL} -o ${MOTION_FILE} \
|
||||||
|
&& (dpkg -i ${MOTION_FILE} || apt-get -f install -y) \
|
||||||
&& sed -i -e 's/^daemon on/daemon off/' \
|
&& sed -i -e 's/^daemon on/daemon off/' \
|
||||||
-e 's/^webcontrol_localhost on/webcontrol_localhost off/' \
|
-e 's/^webcontrol_localhost on/webcontrol_localhost off/' \
|
||||||
-e 's/^stream_localhost on/stream_localhost off/' \
|
-e 's/^stream_localhost on/stream_localhost off/' \
|
||||||
/etc/motion/motion.conf \
|
/etc/motion/motion.conf \
|
||||||
&& rm -rf /var/cache/apt/*
|
&& rm -rf ${MOTION_FILE} /var/lib/apt/lists/*
|
||||||
|
|
||||||
VOLUME /var/lib/motion
|
VOLUME /var/lib/motion
|
||||||
|
WORKDIR /var/lib/motion
|
||||||
|
|
||||||
EXPOSE 8080 8081
|
EXPOSE 8080 8081
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/bin/motion"]
|
ENTRYPOINT ["motion"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user