This project demonstrates using the rv package manager to set up a Ruby development environment with Rails 8.1.1 in a slim Debian Trixie container.
-
Slim Debian Container: Built on Debian Trixie base
-
rv Package Manager: Installs and manages Ruby versions
-
Version Pinning: Pins Ruby 3.4.7 for consistent builds
-
Non-Root User: Secure container setup with dedicated user space
-
Builds slim Debian Trixie container
-
Installs rv package manager
-
Sets up non-root user environment
-
Installs and pins Ruby 3.4.7 using rv
-
Installs Rails gem
-
Scaffolds a simple Rails app
-
Starts the Rails server
make build # Build multi-platform container
make run # Launch container (accessible at http://localhost:3000)
make shell # Open shell inside containerBuild and run
make build
make run
# or you can pull from dockerhub
docker run -it -p 3000:3000 wkirk/rv-rails:0.2.0Access at http://localhost:3000