-
Notifications
You must be signed in to change notification settings - Fork 90
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
docker-compose fails (node-pre-gyp) #255
Comments
So the major issue was that It tries to get a pre-build file, but fails because it doesn't exist: node-pre-gyp http 404 https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.3.1/canvas-v2.3.1-node-v67-linux-musl-x64.tar.gz There are currently no pre-built binaries that work with Alpine Linux because it uses musl. Since this fails, FROM node:11 Which was able to build canvas. There was one other bug: > [email protected] vendor /usr/src/app
> ./scripts/vendor.sh
Copying data to 'public/data'.
Copy examples to 'public/spec'.
/usr/bin/env: 'bash\r': No such file or directory
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] vendor: `./scripts/vendor.sh`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] vendor script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above. Removing RUN sed $'s/\r$//' ./scripts/vendor.sh > ./scripts/vendor.sh tl;dr use |
I can do a PR, if desired. |
That would be great. Thanks! |
- Use Debian as base image as Alpine Linux does not currently work with pre-built canvas binaries - Update packages before installing rsync (also bash package no longer needs to be installed) - Remove '/r' characters from vendor.sh
This was fixed in: #261 |
I'm trying to get the editor running locally with Docker on Windows.
Everything is fine up until the "Linking dependencies" stage:
The text was updated successfully, but these errors were encountered: