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