diff --git a/Dockerfile.iot-example b/Dockerfile.iot-example index eef3795..2ea142a 100644 --- a/Dockerfile.iot-example +++ b/Dockerfile.iot-example @@ -4,6 +4,7 @@ FROM node:alpine LABEL MAINTAINERS="Guillaume Scheibel , Damien DUPORTAL " # Installing package required for the runtime +# build/llo-base-images/asciidoctor-alpine/docker-asciidoctor RUN apk add --no-cache \ bash \ curl \ @@ -48,22 +49,25 @@ COPY iot-swarm-example /home/node/iot-swarm-example/ RUN chown -R node.node /home/node \ && chmod -R 755 /home/node -WORKDIR /home/node/iot-swarm-example -VOLUME /home/node/iot-swarm-example - -ENV NODE_PATH=/usr/local/lib/node_modules - +WORKDIR /home/node/iot-swarm-example/src/browser-client +#ENV NODE_PATH=/usr/local/lib/node_modules USER node -RUN cd /home/node/iot-swarm-example/src/browser-client \ - set -uex; \ - npm install \ - npm cache clean --force \ - cd /home/node/iot-swarm-example/src/IoT \ - npm install \ - npm cache clean --force; +RUN set -uex; \ + npm install; \ + npm audit fix; \ + npm cache clean --force; +WORKDIR /home/node/iot-swarm-example/src/IoT +RUN set -uex; \ + npm install; \ + npm audit fix; \ + npm cache clean --force; + +WORKDIR /home/node/iot-swarm-example +VOLUME /home/node/iot-swarm-example EXPOSE 8080 8088 8084 3081 CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"] +