Closed Mmx233 closed 5 days ago
try go build --tags=libtdjson
. it seems to me that a static link is breaking somewhere
You’re absolutely right; I was able to build a runnable binary again after removing -extldflags "-static"
and adding --tags libtdjson
to the build command in the builder stage. However, this change requires me to copy and install additional libraries in the runner stage, which has increased the final Docker image size from approximately 40MB to around 130MB. Do you have any suggestions to address this issue, or should I wait for a new version of tdlib?
my test project (ubuntu) is running statically. Maybe it's about musl/alpine?
Ok, I will try more and update later.
Build Environment: Docker Image based on
golang:alpine
with tdlib18618ca
: mmx233/tdlibPrevious version of zelenin/go-tdlib with older tdlib works fine.
Dockerfile for
mmx233/tdlib
:Part of Error logs from gcc: