mirror of
https://github.com/hassio-addons/addon-motioneye.git
synced 2025-05-04 19:21:22 +00:00
🚜 Refactor of installation method
This commit is contained in:
parent
be4be37715
commit
e9e86bde4e
2 changed files with 29 additions and 7 deletions
|
@ -5,21 +5,33 @@ FROM ${BUILD_FROM}
|
|||
# Set shell
|
||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||
|
||||
# Copy Python requirements file
|
||||
COPY requirements.txt /tmp/
|
||||
|
||||
# Setup base
|
||||
RUN \
|
||||
apk add --no-cache \
|
||||
apk add --no-cache --virtual .build-dependencies \
|
||||
curl-dev=7.61.1-r1 \
|
||||
gcc=6.4.0-r9 \
|
||||
jpeg-dev=8-r6 \
|
||||
musl-dev=1.1.19-r10 \
|
||||
py2-pip=10.0.1-r0 \
|
||||
python-dev=2.7.15-r1 \
|
||||
\
|
||||
&& apk add --no-cache \
|
||||
cifs-utils=6.8-r0 \
|
||||
ffmpeg@edge=4.0.2-r0 \
|
||||
libcurl=7.61.1-r1 \
|
||||
libjpeg=8-r6 \
|
||||
motion@edge=4.1.1-r1 \
|
||||
nginx=1.14.2-r0 \
|
||||
py2-curl=7.43.0-r5 \
|
||||
py2-pillow=4.3.0-r0 \
|
||||
py2-pip=10.0.1-r0 \
|
||||
py-setuptools=39.1.0-r0 \
|
||||
python2=2.7.15-r1 \
|
||||
v4l-utils=1.12.6-r1 \
|
||||
\
|
||||
&& pip2 install \
|
||||
motioneye==0.39.3
|
||||
&& pip install --no-cache-dir -r /tmp/requirements.txt \
|
||||
\
|
||||
&& apk del --no-cache --purge .build-dependencies \
|
||||
&& rm -f -r /tmp/*
|
||||
|
||||
# Copy root filesystem
|
||||
COPY rootfs /
|
||||
|
|
10
motioneye/requirements.txt
Normal file
10
motioneye/requirements.txt
Normal file
|
@ -0,0 +1,10 @@
|
|||
backports_abc==0.5
|
||||
futures==3.2.0
|
||||
jinja2==2.10
|
||||
MarkupSafe==1.1.0
|
||||
motioneye==0.39.3
|
||||
pillow==5.4.1
|
||||
pycurl==7.43.0.2
|
||||
singledispatch==3.4.0.3
|
||||
six==1.12.0
|
||||
tornado==5.1.1
|
Loading…
Add table
Add a link
Reference in a new issue