From e936d2a0cc0398609a524e7abbfcbd33b58cf293 Mon Sep 17 00:00:00 2001 From: Amit Gandhi Date: Mon, 28 Aug 2017 20:50:29 -0400 Subject: [PATCH] changes based on feedback --- Dockerfile | 7 ++++--- Makefile | 1 - docker-compose.yaml | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index fe4283e..487062b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,4 @@ -FROM hypriot/rpi-node:7 -# FROM hypriot/rpi-node:6.9.1 +FROM hypriot/rpi-node:latest MAINTAINER ViViDboarder ENV LANG en_US.UTF-8 @@ -14,8 +13,10 @@ RUN apt-get install -y --no-install-recommends \ libnss-mdns && \ apt-get clean && \ 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 \ homebridge \ diff --git a/Makefile b/Makefile index d1bf4ca..d2ca616 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,6 @@ shell: build # Target to buld and run in detached mode (continuously) go: build - make clean docker run --net=host -d \ -p "51826:51826" \ -v "$(shell pwd)/config.json:/root/.homebridge/config.json" \ diff --git a/docker-compose.yaml b/docker-compose.yaml index e66da06..277bf56 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -6,3 +6,4 @@ homebridge: volumes: - ./config.json:/root/.homebridge/config.json - ./plugins.txt:/root/.homebridge/plugins.txt + - ./persist:/root/.homebridge/persist