- 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
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
include ../mk/Makefile.include
-# Currently LW-UI needs no-cache (binary version packages not yet available)
-DOCKER_ARGS += $(NO_CACHE)
-
MDG=$(shell basename $(CURDIR))
--build-arg NBI_VERSION==$(shell cat $(MKBUILD)/.dep_NBI) \
--build-arg POL_VERSION==$(shell cat $(MKBUILD)/.dep_POL) \
--build-arg DEVOPS_VERSION==$(shell cat $(MKBUILD)/.dep_devops) \
+ --build-arg LWUI_VERSION==$(shell date +%s) \
$(DOCKER_ARGS) .
clean: