osrm-frontend icon indicating copy to clipboard operation
osrm-frontend copied to clipboard

Update Docker File to use current Alpine/Node (3.19 and 20.12.2)

Open gangstead opened this issue 1 year ago • 1 comments

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

gangstead avatar Apr 12 '24 05:04 gangstead

The error described was reported in #377.

donno avatar Aug 06 '24 13:08 donno

Closed in favour of #383

frodrigo avatar Mar 01 '25 21:03 frodrigo