Django app on 256mb?

Rails has similar issues. You can get further if you define a swapfile. The basic approach is to replace the ENTRYPOINT/CMD in your dockerfile with a command to run an initialization script. That script needs to create a swapfile and then run your application.

You can see the commands that the fly.io launch scanner produces for Rails apps here:

2 Likes