Need more ram only for compiling project

My project requires 1 GB of ram to compile, but for the program itself, I only need ~256 MB of ram. is there a way to decrease the amount of ram the machine has after the build step, or a way for me to build the project locally and then upload that?

@voxal have you tried increasing the memory for the remote builder?

1 Like

Hi,

As @billy says, by default Fly will use a remote builder which comes with plenty of RAM. That builds the image which the vm then runs. To answer your other question, yep, you can indeed build locally instead of using that. From flyctl deploy · Fly Docs run: fly deploy --local-only. Assuming you have Docker locally, that will do as the flag suggests :slight_smile:

1 Like

Ah I see, thank you

1 Like