Sign inSign up

osodevops/docker-sample-ruby-2.2

By osodevops

Updated about 8 years ago

Sample Hello World Ruby application serving on exported port.

Image
0

942

osodevops/docker-sample-ruby-2.2 repository overview

docker-sample-ruby-2.2

Sample Hello World Ruby application serving on exported port.

Running the Ruby app

To simply run the sample ruby application on your desired port, for example below is using 8080. Use the following commands:
export PORT=8080
docker run -d -e "PORT=$PORT" -p $PORT:$PORT osodevops/docker-sample-ruby-2.2

Building Docker image locally

If you need to customise the image you can build it locally using the following:
docker build -t ruby-sample .

Tag summary

Content type

Image

Digest

Size

290.1 MB

Last updated

about 8 years ago

docker pull osodevops/docker-sample-ruby-2.2