osrm-frontend
osrm-frontend copied to clipboard
Update Docker File to use current Alpine/Node (3.19 and 20.12.2)
I was getting an error when starting the container:
/src/node_modules/micromatch/index.js:44
let isMatch = picomatch(String(patterns[i]), { ...options, onResult }, true);
^^^
SyntaxError: Unexpected token ...
In case the markdown formatter messes it up the error is at the object spread operator which was added in node v8.6.0 (source: node.green)
With the current base image, Alpine 3.5 the latest version of node is v6.9.5 (see https://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/). This PR updates it to Alpine 3.19 and node 20.12.2. I've also got this built in the package for my fork and I'm already using it in my cluster https://github.com/gangstead/osrm-frontend/pkgs/container/osrm-frontend
The error described was reported in #377.
Closed in favour of #383