Skip to content

Instantly share code, notes, and snippets.

@codekitchen
Created November 12, 2019 01:51
Show Gist options
  • Save codekitchen/9b040e746a9829e76ba113af9502003e to your computer and use it in GitHub Desktop.
Save codekitchen/9b040e746a9829e76ba113af9502003e to your computer and use it in GitHub Desktop.
compool dockerfile
FROM node:10
LABEL maintainer="Brian Palmer <brian@codekitchen.net>"
RUN mkdir /root/homebridge
WORKDIR /root/homebridge
RUN npm install homebridge serialport
RUN npm install \
git+https://github.com/codekitchen/node-compool-controller \
git+https://github.com/codekitchen/homebridge-compool
EXPOSE 5353/udp
EXPOSE 51826/tcp
CMD ["/root/homebridge/run.sh"]
ADD run.sh /root/homebridge/run.sh
ADD config.json /root/homebridge/config.json
#!/bin/bash
cd /root/homebridge
cp config.json /root/.homebridge/config.json
./node_modules/homebridge/bin/homebridge -P /root/homebridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment