Replies: 4 comments 3 replies
-
I'm not sure if I understand your question correctly. I assume that you want to build the If you want to follow all the steps yourself, just check how the dev container is built: https://github.com/oven-sh/bun/blob/main/Dockerfile.devcontainer There, you'll see all the variables set, all the commands ran to have the binary compiled successfully. |
Beta Was this translation helpful? Give feedback.
-
The linked Dockerfile is what runs to build the container with all the steps. That is your recipe. As you see at the from ( A Dockerfile is usually quite easy to convert to a bash script. It's all commands and some env/variable assignments. |
Beta Was this translation helpful? Give feedback.
-
So its not actually possible to build Bun if you does not possess bun binary already, because it is used in build process for code generation:
And as you can see, developers does not try to make build scripts compatible with anything except Bun itself, as they use internal bun modules. Right now only for spawning processes and file IO, but that situation will get worse if they don't change this direction. |
Beta Was this translation helpful? Give feedback.
-
I want to compile Bun from scratch for production without Docker or downloading any previous Bun binary. How to?
It might be okay to download a compiled JSC from the repo but also can you tell how to compile that repo too.
Beta Was this translation helpful? Give feedback.
All reactions