diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 44c9bd322..29fdc3c73 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,7 +1,8 @@ FROM monogramm/docker-uxbox-builder:latest -ENV API_URL=http://127.0.0.1:6060/api -ENV LEIN_ROOT=TRUE +ENV LEIN_ROOT=TRUE \ + API_URL=http://127.0.0.1:6060/api \ + IS_DEMO=false # Copy frontend source and build release COPY . /home/uxbox/frontend @@ -13,7 +14,7 @@ RUN set -ex; \ -e 's|"uxbox.config.url" ".*"|"uxbox.config.url" "${API_URL}/api"|g' \ scripts/figwheel.clj; \ npm install; \ - npm run dist; \ + npm run prod; \ bash -c "/home/uxbox/frontend/scripts/dist-main"; \ bash -c "/home/uxbox/frontend/scripts/dist-view"; \ bash -c "/home/uxbox/frontend/scripts/dist-worker" diff --git a/frontend/package.json b/frontend/package.json index 9ddc593ca..5b123cad6 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -11,6 +11,7 @@ "scripts": { "watch": "gulp", "dist": "gulp dist", + "prod": "gulp dist --production", "clean": "gulp clean", "figwheel": "PATH=./scripts:$PATH ./scripts/build-worker && PATH=./scripts:$PATH ./scripts/figwheel", "test-watch": "PATH=./scripts:$PATH ./scripts/watch",