Skip to content

Commit c6d01ba

Browse files
committed
Implement the first assignment in ruby
[refs #279da99b2959]
1 parent b2eda82 commit c6d01ba

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed
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"]
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
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:v1
6+
build:
7+
context: .
8+
volumes:
9+
- .:/app
10+
ports:
11+
- 9494:9494

0 commit comments

Comments
 (0)