feature(NPM): install globally

author recommends global installation
This commit is contained in:
Asif Bacchus 2021-01-05 07:38:21 -07:00
parent 581a6ca260
commit 0e6bbf80d5

View File

@ -43,11 +43,11 @@ ENV DELAY=500
# install livereload for node user # install livereload for node user
USER node USER node
WORKDIR /home/node WORKDIR /home/node
RUN npm install livereload RUN npm install -g livereload
# run node via tini by default # run node via tini by default
ENTRYPOINT [ "/sbin/tini", "--" ] 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 # set build timestamp and version labels
ARG BUILD_DATE ARG BUILD_DATE