diff --git a/docker/Dockerfile b/docker/Dockerfile index 40308809..cca85cbc 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -22,4 +22,4 @@ WORKDIR /src # Run App EXPOSE 9966 -CMD ["npm", "start"] +CMD ["npm", "run", "start-prod"] diff --git a/package.json b/package.json index 5f83d581..5ba6a010 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ "compile": "browserify -d src/index.js -s osrm > bundle.raw.js && uglifyjs bundle.raw.js -c -m --source-map=bundle.js.map -o bundle.js", "build": "npm run replace && npm run compile && cp node_modules/leaflet/dist/leaflet.css css/leaflet.css", "start-index": "budo src/index.js --serve=bundle.js --live -d | bistre", + "start-index-prod": "budo src/index.js --serve=bundle.js -d | bistre", "start": "npm run build && npm run start-index", + "start-prod": "npm run build && npm run start-index-prod", "prepub": "npm run build" }, "repository": {