Skip to content

Commit 9d935da

Browse files
committed
Add the ruby implementation as a showcase
[refs #911e345621a9]
1 parent 3d13c9e commit 9d935da

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

developing/webapp/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM ruby:2.4.3-alpine
2+
3+
WORKDIR /app
4+
5+
RUN gem install sinatra
6+
7+
COPY app.rb .
8+
9+
CMD ["ruby", "app.rb"]

developing/webapp/app.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
require 'sinatra'
2+
3+
set :bind, '0.0.0.0'
4+
set :port, 9494
5+
6+
get '/' do
7+
'Hello world!'
8+
end

developing/webapp/docker-compose.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: '3.3'
2+
3+
services:
4+
app:
5+
image: jfahrer/webapp-ruby:latest
6+
build:
7+
context: .
8+
volumes:
9+
- .:/app
10+
ports:
11+
- 9494:9494

0 commit comments

Comments
 (0)