From d63a08e56716358ea4daa30d3050fa01df65a837 Mon Sep 17 00:00:00 2001 From: Jeremy Plsek Date: Fri, 20 Dec 2019 10:50:41 -0500 Subject: js: use npm instead of bower Bower is considered deprecated, so switch to npm. - Update all dependencies - Use npm's version of mxgraph - Use npm's version of jquery - Use npm's version of plotly - Fix mxgraph to use styles and images from the correct location - Removed random csrf token input in nav bar and use js to get csrf token - Remove all calendar and some resource files since they were not used Change-Id: I30d6bd91cded9547caa4c0a5247cd9f214fe9798 Signed-off-by: Jeremy Plsek --- web/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'web') diff --git a/web/Dockerfile b/web/Dockerfile index fe525ca..40ab8f0 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -10,7 +10,6 @@ FROM python:3.5 ENV PYTHONUNBUFFERED 1 RUN apt-get update && apt-get install -y npm -RUN npm install -g bower ADD requirements.txt /requirements.txt RUN pip install -r /requirements.txt @@ -19,7 +18,7 @@ ADD web/init.sh /init.sh ADD src/ /laas_dashboard/ ADD src/static/ laas_dashboard/static/ -RUN cd laas_dashboard/static/ && bower install --allow-root +RUN cd laas_dashboard/static/ && npm install WORKDIR /laas_dashboard/ CMD ["/init.sh"] -- cgit 1.2.3-korg