Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

gangstead
Copy link

@gangstead gangstead commented Apr 12, 2024

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

phofman added a commit to codetitans/osrm-frontend that referenced this pull request Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant