Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 436 Bytes

File metadata and controls

24 lines (19 loc) · 436 Bytes

ruby-sinatra-on-docker-hello-world

Serve a 'hello world' json message via a sinatra server wrapped in a docker container.

Build the image

docker build . -t ruby-sinatra-on-docker-hello-world

Run the container

docker run -p 80:80 -d ruby-sinatra-on-docker-hello-world

Managing containers via docker-compose

Start containers

docker-compose up -d

Stop containers

docker-compose stop