Open gapinto opened 4 years ago
Same problem here - looks like the README say they do not have binaries for Alpine.
Using node:lts
instead of an alpine version worked for me as @sveisvei appointed. Thanks :smile:
@sveisvei We do have experimental alpine binaries but it may be possible that the docker image contains glibc binaries by any chance (improper dockerignore?)
I'm using a docker package based on alpine:latest
and see the same failure when making calls to hashSync
or compare
. Node version is 10.15.3. Happy to take advice on how to get any information to help resolve the defect, currently the app just crashes without giving any error message :(
Nb. .dockerignore
contains my node_modules
directory. My container uses my local code directory but explicitly does not include the node_modules
using the VOLUMES
directive as the host OS is MacOS and the container Alpine Linux.
@nigel-daniels when you performed NPM install, did it install the Alpine binary from Github?
my problem is MODULE_NOT_FOUND , any solutions?
Hi everyone !
alpine
not working but slim
seams ok.
Thank you all, Juu'
@j-catania Thank you for this. Changing from alpine
to slim
totally did the job. I am still not sure how this is related to the docker image we are using. Maybe some low level failure with the scripts that help bcrypt do its job.
@j-catania @j-catania is this the same issue when the client side returns a cors issue after the server gets disconnected? Could I ask for the working docker file? That would be much appreciated, thanks :)
2024, and still having issues using a docker image node:20.12-alpine3.19
.
const hash = await bcrypt.hash(password, 10);
[nodemon] app crashed - waiting for file changes before starting...
Switching to image 20-slim
perfectly solved the problem.
It's not the first time I had issues with alpine
images. I also encountered the same kind of problems on other projects using python and php. I'm considering no longer using alpine for my projects.
Problem still exist ,thanks @powilliam saved me after 3 hours of debugging
Node Version: 12.13.1
I'm using docker:
When I'm trying to execute this code:
The container is exited without saying nothing.
Log: