diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..93f13619 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +node_modules +npm-debug.log diff --git a/Dockerfile b/Dockerfile index 1c11d44e..d4e0f751 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,7 @@ -FROM node:8 - -# Copy dependency info -COPY package*.json /usr/src/app/ - -# Change working directory +FROM node:11.12.0 WORKDIR /usr/src/app/ - -# Install dependencies +COPY package*.json ./ RUN npm install - -# Copy source code -COPY . /usr/src/app/ - -# Expose API port to the outside +COPY . . EXPOSE 5000 - -# Launch application CMD ["npm","start"] diff --git a/appcache.sh b/appcache.sh deleted file mode 100755 index 47876c95..00000000 --- a/appcache.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -echo "CACHE MANIFEST -# `date +%Y-%m-%d` - -CACHE: -index.html" > microbetrace.appcache - -ls components/ | sed -e 's/^/components\//' >> microbetrace.appcache - -ls scripts/ | sed -e 's/^/scripts\//' >> microbetrace.appcache -cat index.html | grep -o "node_modules/.*\.js" >> microbetrace.appcache -cat components/*.html | grep -o "node_modules/.*\.js" >> microbetrace.appcache -cat scripts/*.js | grep -o "node_modules/.*\.js" >> microbetrace.appcache -ls vendor/ | sed -e 's/^/vendor\//' >> microbetrace.appcache - -ls stylesheets/ | sed -e 's/^/stylesheets\//' >> microbetrace.appcache -cat index.html | grep -o "node_modules/.*\.css" >> microbetrace.appcache -cat components/*.html | grep -o "node_modules/.*\.css" >> microbetrace.appcache - -ls img/ | sed -e 's/^/img\//' >> microbetrace.appcache - -ls data/ | sed -e 's/^/data\//' >> microbetrace.appcache -cat cache.extra >> microbetrace.appcache - -echo " -NETWORK: -* - -SETTINGS: -prefer-online -" >> microbetrace.appcache diff --git a/cache.extra b/cache.extra index 757d4681..8024b036 100644 --- a/cache.extra +++ b/cache.extra @@ -1,3 +1,5 @@ +/ +index.html package.json manifest.json node_modules/chosen-js/chosen-sprite.png diff --git a/components/2d_network.html b/components/2d_network.html index 76eef76a..1bcbdbdf 100644 --- a/components/2d_network.html +++ b/components/2d_network.html @@ -1,7 +1,7 @@
-
-
-
+
+
-
-
-
- -
+
+
+
-
-
Orientation
+
+
-
-
+
+
@@ -71,12 +69,12 @@
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
@@ -117,86 +115,134 @@