I do use CI/CD of gitlab to bundle my application.
I do use
node:14-alpine as image and do run yarn to build my app.
After build is finished, I do deploy my app via rsync to the target-server, which run’s
On this server, I do use pm2 to start the app and keep it running.
If I look into the logs, I do see an error like this:
I’ve searched a bit, and found that the issue might be caused of
musl-dev is missing.
I’ve installed it at my
server, and into the
docker-container, but with same result.
BUT, if I do delete the
node_modules directory from server, and run
yarn install right at the Server, the app run like expected
So why does this issue happens here? Must I have the same distribution & version of linux in my docker-container to fit all dependencies?
Source: Docker Questions