Open jamiehaywood opened 4 months ago
Update: works using the oven/bun:latest
image.
Would be ideal if we could run distroless as it halves the final docker image size.
I would say it's not libsql issue but rather that the base image is missing the module. It is therefore your responsibility to provide the modules, especially when using the skinniest docker image variations, for what you would like to run - in this case sqld
.
So this could be closed. :)
thanks for your reply @flexchar - how do you know that sqld
is the missing module?
The error you shared in the first paragraph tells us exactly that - that libgcc_s.so.1
is missing.
I have been tinkering with docker for several years and I stumbled upon issues like that more than I would wish anyone :D.
Upon googling, I find this https://pkgs.alpinelinux.org/package/edge/main/x86_64/libgcc
So I would suggest to install this package and try again. You can do so by adding RUN apk install -y libgcc
to your Dockerfile
. Let me know if that helps!
When I try and run a libsql on a Bun distroless image I get an error:
TypeError: libgcc_s.so.1: cannot open shared object file: No such file or directory
I assume that the distroless is missing some native binaries that libsql relies on?
Minimal repro:
index.ts
drizzle.config.ts
schema.ts
Dockerfile
bun build index.ts --outdir dist --target bun
docker build . -t repro
docker run -p 8080:8080 test