mirror of
https://github.com/vimagick/dockerfiles.git
synced 2026-01-04 12:05:02 +01:00
update motion
This commit is contained in:
31
motion/Dockerfile
Normal file
31
motion/Dockerfile
Normal file
@@ -0,0 +1,31 @@
|
||||
#
|
||||
# Dockerfile for motion
|
||||
#
|
||||
|
||||
FROM debian:bookworm
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
ARG MOTION_VERSION=4.7.0
|
||||
ARG MOTION_CODENAME=bookworm
|
||||
ARG MOTION_ARCH=arm64
|
||||
ARG MOTION_FILE=${MOTION_CODENAME}_motion_${MOTION_VERSION}-1_${MOTION_ARCH}.deb
|
||||
ARG MOTION_URL=https://github.com/Motion-Project/motion/releases/download/release-${MOTION_VERSION}/${MOTION_FILE}
|
||||
|
||||
RUN set -xe \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y curl mosquitto-clients openssh-client \
|
||||
&& curl -sSL ${MOTION_URL} -o ${MOTION_FILE} \
|
||||
&& (dpkg -i ${MOTION_FILE} || apt-get -f install -y) \
|
||||
&& sed -i -e 's/^daemon on/daemon off/' \
|
||||
-e 's/^webcontrol_localhost on/webcontrol_localhost off/' \
|
||||
-e 's/^stream_localhost on/stream_localhost off/' \
|
||||
-e 's/^output_pictures on/output_pictures off/' \
|
||||
/etc/motion/motion.conf \
|
||||
&& rm -rf ${MOTION_FILE} /var/lib/apt/lists/*
|
||||
|
||||
VOLUME /var/lib/motion
|
||||
WORKDIR /var/lib/motion
|
||||
|
||||
EXPOSE 8080 8081
|
||||
|
||||
ENTRYPOINT ["motion"]
|
||||
Reference in New Issue
Block a user