FerryDocs

Ruby

What the generated Dockerfile does for a Ruby project, when you set no build or start command.

Edit on GitHub

Base image. The image is ruby:<version>-slim.

1 / 5
The Ruby Dockerfile

The defaults

StepWhat Ferry does
Base imageThe is ruby:<version>-slim. The version comes from .ruby-version or from the ruby line of the Gemfile. The default is 3.3.
System toolsbuild-essential, git, libpq-dev, libyaml-dev and pkg-config. Gems with native extensions need them.
Dependenciesbundle install
BuildNone by default. Your build command runs after the install.
StartWith a config.ru: the command below.
The default start command
bundle exec rackup -o 0.0.0.0 -p ${PORT:-10000}

On this page