-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
59 lines (45 loc) · 1.32 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
FROM phusion/baseimage:0.9.18
MAINTAINER jshridha <[email protected]>
ENV MOTIONEYE_VERSION=0.37
RUN apt-get update && apt-get install -q -y --no-install-recommends \
bsd-mailx \
# motion \
git \
mutt \
ssmtp \
x264 \
# supervisor \
autoconf \
automake \
pkgconf \
libtool \
libjpeg8-dev \
libjpeg-dev \
build-essential \
libzip-dev \
libavformat-dev \
libavcodec-dev \
libswscale-dev \
libavdevice-dev \
python-dev && \
apt-get -y clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN add-apt-repository -y ppa:mc3man/trusty-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 && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN mkdir -p /var/lib/motioneye
# Copy and scripts
COPY script/* /usr/local/bin/
RUN chmod +x /usr/local/bin/*
RUN pip install motioneye==$MOTIONEYE_VERSION
#ADD supervisor /etc/supervisor
EXPOSE 8081 8765
VOLUME ["/config", "/home/nobody/motioneye"]
WORKDIR /home/nobody/motioneye
RUN usermod -g users nobody
#CMD ["/usr/local/bin/dockmotioneye"]
ADD init/*.sh /etc/my_init.d/
ADD services /etc/service
RUN chmod -v +x /etc/service/*/run /etc/service/*/finish /etc/my_init.d/*.sh