Skip to content

Commit

Permalink
fix(docker): config update not working (#1128)
Browse files Browse the repository at this point in the history
Fixes #1122
  • Loading branch information
robertsLando authored May 3, 2021
1 parent 94e9f9c commit 6fccb01
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,21 @@ ARG zwavejs=https://github.com/zwave-js/node-zwave-js/archive/master.tar.gz

RUN if [ ! -z "$updateDevices" ]; \
then curl -sL ${zwavejs} | \
tar vxz --strip=5 -C ./node_modules/@zwave-js/config/config/devices \
node-zwave-js-master/packages/config/config/devices/ ;\
tar vxz --strip=5 -C ./node_modules/@zwave-js/config/config/devices \
node-zwave-js-master/packages/config/config/devices/ ;\
fi

COPY . .

RUN npm run build && \
npm prune --production && \
rm -rf \
build \
index.html \
package-lock.json \
package.sh \
src \
static \
stylesheets
build \
index.html \
package.sh \
src \
static \
stylesheets

RUN if [ ! -z "$plugins" ]; \
then echo "Installing plugins ${plugins}"; npm i ${plugins} ; fi
Expand Down

0 comments on commit 6fccb01

Please sign in to comment.