1. Railsアプリを作成 まずはコンテナ化するRailsアプリを用意します。 今回はアクセスした時に静的ページを表示するだけのアプリを用意しました。 2. Dockerfileの作成 Dockerfileについてはphusion/passenger-dockerリポジトリのREADMEを参考にRuby2.5を利用する設定としました。 今回は環境変数RAILS_ENVにdevelopmentを指定してます。 今回は本番モード(production)で必要になる設定は省略してます。 ## # phusion/passenger-docker # https://github.com/phusion/passenger-docker ## # Getting started # Ruby images FROM phusion/passenger-ruby25:latest # ...put