ruby/test/examples/from-dockerfile
2021-11-23 13:19:17 +00:00
..
Dockerfile Merge pull request #348 from phracek/support_github_matrix 2021-11-23 13:19:17 +00:00
Dockerfile.s2i Merge pull request #348 from phracek/support_github_matrix 2021-11-23 13:19:17 +00:00
README.md Merge pull request #348 from phracek/support_github_matrix 2021-11-23 13:19:17 +00:00

Dockerfile examples

This directory contains example Dockerfiles that demonstrate how to use the image with a Dockerfile and docker build.

For demonstration, we use an application code available at https://github.com/sclorg/rails-ex.git.

Pull the source to the local machine first:

git clone https://github.com/sclorg/rails-ex.git app-src

Then, build a new image from a Dockerfile in this directory:

docker build -f Dockerfile -t ruby-app .

And run the resulting image with the final application:

docker run -ti --rm ruby-app