Use LWUI version to allow caching
- use time/seconds to break cache until lwui packaging is supported
- avoids usings --no-cache due to upstream npm install delays
Signed-off-by: Mike Marchetti <mmarchetti@sandvine.com>
Change-Id: I5f037a955b2091e0477c7fe22674f43458436145
diff --git a/docker/light-ui/Dockerfile b/docker/light-ui/Dockerfile
index f845f7a..5cf9aa7 100644
--- a/docker/light-ui/Dockerfile
+++ b/docker/light-ui/Dockerfile
@@ -4,7 +4,9 @@
RUN apt-get update && apt-get install -y npm git python-pip nginx supervisor
RUN npm install -g bower
-RUN git clone https://osm.etsi.org/gerrit/osm/LW-UI /usr/src/app
+
+ARG LWUI_VERSION=
+RUN git clone https://osm.etsi.org/gerrit/osm/LW-UI /usr/src/app && echo LWUI_VERSION
RUN ln -s /usr/bin/nodejs /usr/bin/node
RUN bower install --allow-root
diff --git a/docker/light-ui/Makefile b/docker/light-ui/Makefile
index e638100..d64462a 100644
--- a/docker/light-ui/Makefile
+++ b/docker/light-ui/Makefile
@@ -1,6 +1,3 @@
include ../mk/Makefile.include
-# Currently LW-UI needs no-cache (binary version packages not yet available)
-DOCKER_ARGS += $(NO_CACHE)
-
MDG=$(shell basename $(CURDIR))