Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions rails/getting-started/dockerfiles.html.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Dockerfiles and fly.toml

Check warning on line 2 in rails/getting-started/dockerfiles.html.md

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Fly.Spelling] Is 'Dockerfiles' a typo? Raw Output: {"message": "[Fly.Spelling] Is 'Dockerfiles' a typo?", "location": {"path": "rails/getting-started/dockerfiles.html.md", "range": {"start": {"line": 2, "column": 8}}}, "severity": "INFO"}
layout: framework_docs
order: 4
redirect_from: /rails/getting-started/dockerfiles/
Expand Down Expand Up @@ -27,6 +27,10 @@
bin/rails generate dockerfile
```

<div class="note icon">
If you get a `Could not find generator 'dockerfile'.` error, your app predates the `dockerfile-rails` gem. Add [dockerfile-rails](https://github.com/rubys/dockerfile-rails) to your Gemfile and run `bundle install` first.
</div>

The generator will remember the options you selected before (these are
stored in `config/dockerfile.yml`). If you need to change a boolean
option, add or remove a `no-` prefix before the option name.
Expand Down Expand Up @@ -75,7 +79,7 @@
to remain within or near the free allowances, and to apps that want to scale
to be able to handle a large number of concurrent connections.

Both [fullstaq](https://fullstaqruby.org/) and [jemalloc](https://jemalloc.net/) are used by many to reduce their memory footprint. As every application is different, test your application to see if either are appropriate for you. Enabling one or both can be done by regenerating your Dockerfile and specifying the appropriate option(s):

Check warning on line 82 in rails/getting-started/dockerfiles.html.md

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Fly.Spelling] Is 'jemalloc' a typo? Raw Output: {"message": "[Fly.Spelling] Is 'jemalloc' a typo?", "location": {"path": "rails/getting-started/dockerfiles.html.md", "range": {"start": {"line": 82, "column": 49}}}, "severity": "INFO"}

Check warning on line 82 in rails/getting-started/dockerfiles.html.md

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Fly.Spelling] Is 'fullstaq' a typo? Raw Output: {"message": "[Fly.Spelling] Is 'fullstaq' a typo?", "location": {"path": "rails/getting-started/dockerfiles.html.md", "range": {"start": {"line": 82, "column": 7}}}, "severity": "INFO"}

```cmd
bin/rails generate dockerfile --fullstaq --jemalloc
Expand Down
Loading