Skip to content

Commit

Permalink
feat(docker): allow to update devices of driver during build (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
varet80 authored Dec 18, 2020
1 parent 82ee19a commit e7ad93b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# ----------------
# STEP 1:
FROM node:erbium-alpine AS build-z2m

ARG updateDevices
ARG zwavejs=https://github.com/zwave-js/node-zwave-js
# Install required dependencies
RUN apk --no-cache add \
coreutils \
linux-headers \
alpine-sdk \
python \
openssl
openssl \
git rsync

WORKDIR /root/zwavejs2mqtt

Expand All @@ -25,6 +27,9 @@ RUN rm -rf \
src \
static \
stylesheets
RUN if [[ ! -z "$updateDevices" ]]; then git clone $zwavejs; \
rsync -av node-zwave-js/packages/config/config/devices/ './node_modules/@zwave-js/config/config/devices'; \
rm -rf node-zwave-js; fi

# ----------------
# STEP 2:
Expand Down

0 comments on commit e7ad93b

Please sign in to comment.