changes based on feedback

This commit is contained in:
Amit Gandhi 2017-08-28 20:50:29 -04:00
parent 4e5194b660
commit e936d2a0cc
3 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,4 @@
FROM hypriot/rpi-node:7 FROM hypriot/rpi-node:latest
# FROM hypriot/rpi-node:6.9.1
MAINTAINER ViViDboarder <vividboarder@gmail.com> MAINTAINER ViViDboarder <vividboarder@gmail.com>
ENV LANG en_US.UTF-8 ENV LANG en_US.UTF-8
@ -14,8 +13,10 @@ RUN apt-get install -y --no-install-recommends \
libnss-mdns && \ libnss-mdns && \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN apt-get update && apt-get install libpcap-dev iputils-ping
RUN apt-get update && apt-get install iputils-ping RUN npm config set unsafe-perm true
RUN npm install -g --unsafe-perm \ RUN npm install -g --unsafe-perm \
homebridge \ homebridge \

View File

@ -28,7 +28,6 @@ shell: build
# Target to buld and run in detached mode (continuously) # Target to buld and run in detached mode (continuously)
go: build go: build
make clean
docker run --net=host -d \ docker run --net=host -d \
-p "51826:51826" \ -p "51826:51826" \
-v "$(shell pwd)/config.json:/root/.homebridge/config.json" \ -v "$(shell pwd)/config.json:/root/.homebridge/config.json" \

View File

@ -6,3 +6,4 @@ homebridge:
volumes: volumes:
- ./config.json:/root/.homebridge/config.json - ./config.json:/root/.homebridge/config.json
- ./plugins.txt:/root/.homebridge/plugins.txt - ./plugins.txt:/root/.homebridge/plugins.txt
- ./persist:/root/.homebridge/persist