01 / 03
One file, one container
The whole app — models, controllers, views — is one .rb file. Copy it in, expose Puma, ship. This is the entire Dockerfile.
DockerfileFROM ruby:3.3-slim WORKDIR /app RUN gem install camping puma COPY app.rb ./ EXPOSE 9292 CMD ["puma", "-p", "9292", "-e", "production", "app.rb"]