Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] add ability to update devices of driver during build #86

Merged
merged 2 commits into from
Dec 18, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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