-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run on oven/bun:distroless
docker image
#1558
Comments
Update: works using the 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 So this could be closed. :) |
thanks for your reply @flexchar - how do you know that |
The error you shared in the first paragraph tells us exactly that - that 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 |
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
The text was updated successfully, but these errors were encountered: