jeffeb3 / sandify

web based user interface to create patterns that could be useful for robots that draw in sand with ball bearings.
MIT License
187 stars 34 forks source link

Dockerfile and docker-compose broken? #273

Closed christianholzDE closed 10 months ago

christianholzDE commented 11 months ago

I just cloned sandify on a local ubuntu host and tried to run the docker-compose.yml file.

docker-compose build sandify fails with the following error:

Building sandify
Sending build context to Docker daemon  26.38MB
Step 1/6 : FROM node:16.10.0
 ---> 9c23a8242f8b
Step 2/6 : RUN npm install -g npm
 ---> Running in e614c4ac8e51
npm notice 
npm notice New major version of npm available! 7.24.0 -> 10.1.0
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.1.0>
npm notice Run `npm install -g npm@10.1.0` to update!
npm notice 
npm ERR! code EBADENGINE
npm ERR! engine Unsupported engine
npm ERR! engine Not compatible with your version of node/npm: npm@10.1.0
npm ERR! notsup Not compatible with your version of node/npm: npm@10.1.0
npm ERR! notsup Required: {"node":"^18.17.0 || >=20.5.0"}
npm ERR! notsup Actual:   {"npm":"7.24.0","node":"v16.10.0"}

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2023-09-14T12_51_29_079Z-debug.log
The command '/bin/sh -c npm install -g npm' returned a non-zero code: 1
ERROR: Service 'sandify' failed to build : Build failed

I have tried to debug this myself and replace the FROM node:16.10.0 with FROM node:latest, but that fails later on as well. I am unfortunately not a node expert...

jeffeb3 commented 10 months ago

The new version v1.0.0 works for me. It got bumped to version node:20.6.1

Try it out, and reopen this issue if it isn't working for you.