oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.32k stars 2.78k forks source link

Bun docker application(oven/bun:1.1.34-debian) takes long to install and then fails on startup #14997

Open fjdvchain opened 2 weeks ago

fjdvchain commented 2 weeks ago

What version of Bun is running?

1.1.34

What platform is your computer?

Darwin 23.6.0 arm64 arm

What steps can reproduce the bug?

I created an example repo that should make it easy to reproduce the issues I am having.

1) On initial docker build bun install takes a very long time(+5 minutes) and is usually fixed by stopping and rerunning the build which is not ideal. 2) Running built docker image crashes when running drizzle migration(but this same command executes fine locally)

What is the expected behavior?

For the docker image to build quickly AND docker image runs my application successfully

What do you see instead?

the exact opposite

Image Image

Additional information

Here is the repository you can use to reproduce it https://github.com/fjdvchain/bun-bugs

fjdvchain commented 1 week ago

Just want to add that I switch back to node and it works fine. Installs didn't take forever and drizzle migration just works fine.

Image