Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM phusion/baseimage:0.9.18
FROM phusion/baseimage:0.9.22

MAINTAINER jshridha <jshridha@gmail.com>

ENV MOTIONEYE_VERSION=0.36.1
ENV MOTIONEYE_VERSION=0.38

RUN apt-get update && apt-get install -q -y --no-install-recommends \
bsd-mailx \
Expand All @@ -28,7 +28,7 @@ RUN apt-get update && apt-get install -q -y --no-install-recommends \
apt-get -y clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

RUN add-apt-repository -y ppa:mc3man/trusty-media && \
RUN add-apt-repository -y ppa:mc3man/xerus-media && \
apt-get update && \
apt-get install -q -y --no-install-recommends ffmpeg v4l-utils python-pip python-dev libssl-dev libcurl4-openssl-dev libjpeg-dev && \
apt-get -y clean && \
Expand All @@ -40,6 +40,20 @@ RUN mkdir -p /var/lib/motioneye
COPY script/* /usr/local/bin/
RUN chmod +x /usr/local/bin/*

RUN cd /tmp && git clone --branch 4.1 https://github.com/Motion-Project/motion.git motion-project
RUN cd /tmp/motion-project && \
autoreconf -fiv && \
./configure --prefix=/usr --without-pgsql --without-sqlite3 --without-mysql --with-ffmpeg=/usr && \
make && \
touch README \
make install && \
cp motion /usr/local/bin/motion && cd / && \
rm -rf /tmp/motion-project

RUN pip install --upgrade pip
RUN pip install -U setuptools
RUN pip install -U pip

RUN pip install motioneye==$MOTIONEYE_VERSION

#ADD supervisor /etc/supervisor
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ docker run -d --name=motioneye \
--device=/dev/video0
-p 8081:8081 \
-p 8765:8765 \
-e TIMEZONE="America/New_York" \
-e PUID="99" \
-e PGID="100" \
-v /etc/localtime:/etc/localtime:ro \
-v /mnt/user/appdata/motioneye/media:/home/nobody/media \
-v /mnt/user/appdata/motioneye/config:/config \
jshridha/motioneye:latest
Expand Down