mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 05:04:21 +01:00
* Bump zwave-js to 9.0.1 and zwave-js-server to 1.16.0 * build @serialport/bindings-cpp from source * Bump zwave-js to 9.0.2 * Update config.yaml * Empty commit
33 lines
687 B
Docker
33 lines
687 B
Docker
ARG BUILD_FROM
|
|
FROM ${BUILD_FROM}
|
|
|
|
ARG ZWAVEJS_SERVER_VERSION
|
|
ARG ZWAVEJS_VERSION
|
|
|
|
# Install Z-Wave JS
|
|
WORKDIR /usr/src
|
|
RUN \
|
|
set -x \
|
|
&& apk add --no-cache \
|
|
nodejs \
|
|
npm \
|
|
&& apk add --no-cache --virtual .build-dependencies \
|
|
build-base \
|
|
git \
|
|
linux-headers \
|
|
python3 \
|
|
\
|
|
&& npm config set unsafe-perm \
|
|
&& npm install \
|
|
"zwave-js@${ZWAVEJS_VERSION}" \
|
|
"@zwave-js/server@${ZWAVEJS_SERVER_VERSION}" \
|
|
\
|
|
&& npm rebuild --build-from-source @serialport/bindings-cpp \
|
|
&& apk del --no-cache \
|
|
.build-dependencies
|
|
|
|
WORKDIR /
|
|
COPY rootfs /
|
|
|
|
ENV PATH=/usr/src/node_modules/.bin:$PATH
|