Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Docker [Alpine]: uWebSockets is incompatible#158

Answeredbyghost
dalisoft asked this question inQ&A
Discussion options

Hi,@alexhultman

I trying within Docker with thisnode alpine, but says this library is incompatible.

Reason:Alpine uses musl instead, sourcehere andhere

Related issue:#140

You must be logged in to vote
Answered by ghostDec 21, 2020

Binaries are not compatible with Alpine since it is using a different libc. You can compile your own binaries if you insist on using this particular embedded dist.

Replies: 5 comments 5 replies

Comment options

I will track this issuehere and will add solution on README

You must be logged in to vote
0 replies
Comment options

Binaries are not compatible with Alpine since it is using a different libc. You can compile your own binaries if you insist on using this particular embedded dist.

You must be logged in to vote
1 reply
@dalisoft
Comment options

Sorry@alexhultman, you here wrong, binaries supports Alpine and even CentOS, see my answer below and if you think my answer helpful, you can mark as Answer.

Answer selected
Comment options

If anyone also gets this issue, you can try

RUN ln -s /lib/libc.musl-x86_64.so.1 /lib/ld-linux-x86-64.so.2 command.
It worked for me.
uWebSockets.js is amazing, even binaries works with this command.

If you need solutions for Docker/Linux issues, look athere as my library works on top of uWebSockets.js

You must be logged in to vote
2 replies
@theoephraim
Comment options

same solution but for multiple architectures
RUN ln -s "/lib/libc.musl-$(uname -m).so.1" "/lib/ld-linux-$(uname -m).so.1"

@kolserdav
Comment options

uname -m in Dockerfile always shows$BUILDPLATFORM not$TARGETPLATFORM

Comment options

I can run uwebsocket.js inside Docker with additional: RUN apk add --no-cache gcompat

You must be logged in to vote
1 reply
@kodmanyagha
Comment options

Bro, you saved my 3 days. I want to write a poetry for this answer.

Sometimes I feel that my brain is going to blow.
Searching engines and scrolling to below.
Neither google nor chatgpt nor stackoverflow,
Thanks to all github bros who opens window.

Comment options

Had to adjust the fix slightly to work on different architectures.

Adding this to my Dockerfile allowed uws to work:
RUN ln -s "/lib/libc.musl-$(uname -m).so.1" "/lib/ld-linux-$(uname -m).so.1"

You must be logged in to vote
1 reply
@kolserdav
Comment options

uname -m in Dockerfile always shows$BUILDPLATFORM not$TARGETPLATFORM

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
5 participants
@dalisoft@theoephraim@kodmanyagha@kolserdav@kroscek
Converted from issue

This discussion was converted from issue #158 on December 09, 2020 11:59.


[8]ページ先頭

©2009-2025 Movatter.jp