mirror of
https://github.com/ViViDboarder/docker-rpi-motioneye.git
synced 2024-11-21 15:46:27 +00:00
Add cross-build
This commit is contained in:
parent
13b480f66d
commit
59c972bc14
@ -1,6 +1,8 @@
|
||||
FROM resin/rpi-raspbian:jessie
|
||||
MAINTAINER ViViDboarder <ViViDboarder@gmail.com>
|
||||
|
||||
RUN [ "cross-build-start" ]
|
||||
|
||||
# Instal Python dependencies
|
||||
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 \
|
||||
@ -46,12 +48,14 @@ VOLUME /etc/motioneye
|
||||
RUN mkdir -p /var/lib/motioneye
|
||||
VOLUME /var/lib/motioneye
|
||||
|
||||
RUN [ "cross-build-end" ]
|
||||
|
||||
EXPOSE 8765
|
||||
|
||||
# RUN useradd motioneye
|
||||
# RUN chown -R motioneye /etc/motioneye /var/lib/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 ; \
|
||||
/usr/local/bin/meyectl startserver -c /etc/motioneye/motioneye.conf
|
||||
|
Loading…
Reference in New Issue
Block a user