mirror of
https://github.com/ViViDboarder/docker-rpi-motioneye.git
synced 2024-11-21 20:56:38 +00:00
Add cross-build
This commit is contained in:
parent
13b480f66d
commit
59c972bc14
@ -1,6 +1,8 @@
|
|||||||
FROM resin/rpi-raspbian:jessie
|
FROM resin/rpi-raspbian:jessie
|
||||||
MAINTAINER ViViDboarder <ViViDboarder@gmail.com>
|
MAINTAINER ViViDboarder <ViViDboarder@gmail.com>
|
||||||
|
|
||||||
|
RUN [ "cross-build-start" ]
|
||||||
|
|
||||||
# Instal Python dependencies
|
# Instal Python dependencies
|
||||||
RUN echo 'deb-src http://archive.raspbian.org/raspbian jessie main contrib non-free rpi firmware' >> /etc/apt/sources.list && \
|
RUN echo 'deb-src http://archive.raspbian.org/raspbian jessie main contrib non-free rpi firmware' >> /etc/apt/sources.list && \
|
||||||
apt-get update && apt-get install -y \
|
apt-get update && apt-get install -y \
|
||||||
@ -46,12 +48,14 @@ VOLUME /etc/motioneye
|
|||||||
RUN mkdir -p /var/lib/motioneye
|
RUN mkdir -p /var/lib/motioneye
|
||||||
VOLUME /var/lib/motioneye
|
VOLUME /var/lib/motioneye
|
||||||
|
|
||||||
|
RUN [ "cross-build-end" ]
|
||||||
|
|
||||||
EXPOSE 8765
|
EXPOSE 8765
|
||||||
|
|
||||||
# RUN useradd motioneye
|
# RUN useradd motioneye
|
||||||
# RUN chown -R motioneye /etc/motioneye /var/lib/motioneye
|
# RUN chown -R motioneye /etc/motioneye /var/lib/motioneye
|
||||||
# USER motioneye
|
# USER motioneye
|
||||||
|
|
||||||
CMD test -e /etc/motioneye/motioneye.conf || \
|
CMD test -e /etc/motioneye/motioneye.conf || \
|
||||||
cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf ; \
|
cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf ; \
|
||||||
/usr/local/bin/meyectl startserver -c /etc/motioneye/motioneye.conf
|
/usr/local/bin/meyectl startserver -c /etc/motioneye/motioneye.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user