# Need more ram only for compiling project

**URL:** <https://community.fly.io/t/need-more-ram-only-for-compiling-project/10959>\
**Category:** Questions / Help\
**Created:** [February 23, 2023, 6:43pm UTC](https://community.fly.io/t/need-more-ram-only-for-compiling-project/10959 "2023-02-23T18:43:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![voxal](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/voxal/32/9773_2.png) [@voxal](https://community.fly.io/u/voxal)\
**Post date:** [February 23, 2023, 6:43pm UTC](https://community.fly.io/t/need-more-ram-only-for-compiling-project/10959/1 "2023-02-23T18:43:18Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![billy](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/billy/32/35496_2.png) [@billy](https://community.fly.io/u/billy)\
**Post date:** [February 24, 2023, 5:07pm UTC](https://community.fly.io/t/need-more-ram-only-for-compiling-project/10959/2 "2023-02-24T17:07:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![greg](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/greg/32/2119_2.png) [@greg](https://community.fly.io/u/greg)\
**Post date:** [February 24, 2023, 7:13pm UTC](https://community.fly.io/t/need-more-ram-only-for-compiling-project/10959/3 "2023-02-24T19:13:42Z")

</div>

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](https://fly.io/docs/flyctl/deploy/) run: `fly deploy --local-only`. Assuming you have Docker locally, that will do as the flag suggests 🙂

---

<div class="post-metadata">

**Author:** ![voxal](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/voxal/32/9773_2.png) [@voxal](https://community.fly.io/u/voxal)\
**Post date:** [February 24, 2023, 8:10pm UTC](https://community.fly.io/t/need-more-ram-only-for-compiling-project/10959/4 "2023-02-24T20:10:07Z")

</div>

Ah I see, thank you
