Skip to content

Instantly share code, notes, and snippets.

@sarjsheff
Last active July 16, 2022 06:49
Show Gist options
  • Save sarjsheff/4d2921fafab0a706888461ba503e1bc9 to your computer and use it in GitHub Desktop.
Save sarjsheff/4d2921fafab0a706888461ba503e1bc9 to your computer and use it in GitHub Desktop.
motioneye docker
FROM debian:11
RUN apt update && apt-get install motion ffmpeg v4l-utils -y
RUN apt-get install python2 curl -y
RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py && python2 get-pip.py
RUN apt-get install python-dev-is-python2 python-setuptools libssl-dev libcurl4-openssl-dev libjpeg-dev zlib1g-dev libffi-dev libzbar-dev libzbar0 -y
RUN apt install -y fdisk lsb-release
RUN pip install motioneye
RUN mkdir -p /var/lib/motioneye
CMD ["sh","-c","test -d /etc/motioneye || mkdir -p /etc/motioneye && cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf && /usr/local/bin/meyectl startserver -c /etc/motioneye/motioneye.conf"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment