initial
This commit is contained in:
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@ -0,0 +1,24 @@
|
||||
FROM node:8
|
||||
|
||||
LABEL Maintainer="Wolfgang Hottgenroth <woho@hottis.de>"
|
||||
LABEL ImageName="registry.gitlab.com/wolutator/hkd"
|
||||
|
||||
ARG PIN="031-45-154"
|
||||
ARG BROKER="mqtt://127.0.0.1"
|
||||
ARG DATA_DIR="/opt/app"
|
||||
ARG STORAGE_DIR="/opt/app/storage"
|
||||
|
||||
RUN \
|
||||
node install -g homekit2mqtt --unsafe-perm && \
|
||||
mkdir -p ${DATA_DIR} && \
|
||||
touch ${DATA_DIR}/mapping.json && \
|
||||
mkdir -p ${STORAGE_DIR}
|
||||
|
||||
|
||||
VOLUME ${DATA_DIR}
|
||||
EXPOSE 51826
|
||||
EXPOSE 51888
|
||||
|
||||
CMD [ "homekit2mqtt", "-m", ${DATA_DIR}"/mapping.json", "-u", ${BROKER}, "-s" ${STORAGE_DIR}, "--insecure", "-c", $PIN ]
|
||||
|
||||
|
Reference in New Issue
Block a user