Practice of Dockerize Ruby on Rails application.
$ docker build -t rails .
Show routes:
$ docker run rails routes
Boot rails server (with port binding):
$ docker run -p 3000:3000 rails server
and you can execute any rails commands.
Practice of Dockerize Ruby on Rails application.
$ docker build -t rails .
Show routes:
$ docker run rails routes
Boot rails server (with port binding):
$ docker run -p 3000:3000 rails server
and you can execute any rails commands.