To support Node 7, I added dependencies to build OSRM from source. This is because the OSRM team only publishes binaries for Node 4 and 6 (see here). With these dependencies, the node-osrm package will build OSRM from source. Without them, the Dockerfile will fail to build.
Implemented a common trick to cache the RUN yarn layer in the Dockerfile. Without this, yarn is run each time the app code changes, even if the package.json is unchanged.
This is just following up on https://github.com/stepankuzmin/node-isochrone/pull/27. I implemented
deintersect
as a Galton configuration option.I also made some fixes to the Dockerfile:
node-osrm
package will build OSRM from source. Without them, the Dockerfile will fail to build.RUN yarn
layer in the Dockerfile. Without this,yarn
is run each time the app code changes, even if thepackage.json
is unchanged.