mirror of
https://github.com/ViViDboarder/docker-rpi-homebridge.git
synced 2024-12-22 08:17:38 +00:00
Add cross-arch building
This commit is contained in:
parent
cd40c5bfcc
commit
4d46830ce5
14
Dockerfile
14
Dockerfile
@ -1,12 +1,13 @@
|
||||
FROM hypriot/rpi-node:7
|
||||
# FROM hypriot/rpi-node:6.9.1
|
||||
MAINTAINER ViViDboarder <vividboarder@gmail.com>
|
||||
|
||||
RUN [ "cross-build-start" ]
|
||||
|
||||
ENV LANG en_US.UTF-8
|
||||
ENV LC_ALL en_US.UTF-8
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y --no-install-recommends \
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
avahi-daemon \
|
||||
avahi-discover \
|
||||
build-essential \
|
||||
@ -24,13 +25,14 @@ RUN npm install -g --unsafe-perm \
|
||||
cd /usr/local/lib/node_modules/hap-nodejs/node_modules/mdns && \
|
||||
node-gyp BUILDTYPE=Release rebuild
|
||||
|
||||
EXPOSE 5353 51826
|
||||
|
||||
RUN mkdir -p /var/run/dbus/
|
||||
|
||||
USER root
|
||||
|
||||
RUN mkdir -p /root/.homebridge
|
||||
|
||||
RUN [ "cross-build-end" ]
|
||||
|
||||
EXPOSE 5353 51826
|
||||
VOLUME /root/.homebridge
|
||||
WORKDIR /root/.homebridge
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user