From 0e6bbf80d5a594357d465a3433e119599159b985 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Tue, 5 Jan 2021 07:38:21 -0700 Subject: [PATCH] feature(NPM): install globally author recommends global installation --- livereload/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/livereload/Dockerfile b/livereload/Dockerfile index 9dfe300..aba961f 100644 --- a/livereload/Dockerfile +++ b/livereload/Dockerfile @@ -43,11 +43,11 @@ ENV DELAY=500 # install livereload for node user USER node WORKDIR /home/node -RUN npm install livereload +RUN npm install -g livereload # run node via tini by default ENTRYPOINT [ "/sbin/tini", "--" ] -CMD node node_modules/livereload/bin/livereload.js /var/watch --debug --exts $EXT --exclusions $EXCLUDE -u true --wait $DELAY +CMD livereload /var/watch --debug --exts $EXT --exclusions $EXCLUDE -u true --wait $DELAY # set build timestamp and version labels ARG BUILD_DATE