Last active
July 16, 2022 06:49
-
-
Save sarjsheff/4d2921fafab0a706888461ba503e1bc9 to your computer and use it in GitHub Desktop.
motioneye docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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