1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-30 18:51:24 +00:00
dockerfiles/motion-arm64/Dockerfile

31 lines
978 B
Docker
Raw Normal View History

2016-01-03 05:23:48 +00:00
#
# Dockerfile for motion-arm
#
2022-10-28 07:47:11 +00:00
FROM debian:bullseye
2016-04-05 14:03:30 +00:00
MAINTAINER EasyPi Software Foundation
2016-01-03 05:23:48 +00:00
2022-10-28 07:47:11 +00:00
ARG MOTION_VERSION=4.4.0
ARG MOTION_CODENAME=bullseye
ARG MOTION_FILE=${MOTION_CODENAME}_motion_${MOTION_VERSION}-1_arm64.deb
ARG MOTION_URL=https://github.com/Motion-Project/motion/releases/download/release-${MOTION_VERSION}/${MOTION_FILE}
2017-05-31 09:09:30 +00:00
2016-01-03 05:23:48 +00:00
RUN set -xe \
&& apt-get update \
2022-10-28 07:47:11 +00:00
&& apt-get install -y curl mosquitto-clients openssh-client \
2017-05-31 09:09:30 +00:00
&& curl -sSL ${MOTION_URL} -o ${MOTION_FILE} \
&& (dpkg -i ${MOTION_FILE} || apt-get -f install -y) \
2016-01-03 05:23:48 +00: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 07:19:00 +00:00
-e 's/^output_pictures on/output_pictures off/' \
2016-01-03 05:23:48 +00:00
/etc/motion/motion.conf \
2017-05-31 09:09:30 +00:00
&& rm -rf ${MOTION_FILE} /var/lib/apt/lists/*
2016-01-03 05:23:48 +00:00
VOLUME /var/lib/motion
2017-05-31 09:09:30 +00:00
WORKDIR /var/lib/motion
2016-01-03 05:23:48 +00:00
EXPOSE 8080 8081
2017-05-31 09:09:30 +00:00
ENTRYPOINT ["motion"]