We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c4d342 commit 5519300Copy full SHA for 5519300
developing/webapp/Dockerfile
@@ -2,9 +2,12 @@ FROM ruby:2.4.3-alpine
2
3
WORKDIR /app
4
5
-RUN apk update && apk add build-base postgresql-dev
6
-RUN gem install sinatra pg
+RUN apk add --no-cache \
+ build-base \
7
+ postgresql-dev
8
-COPY app.rb .
9
+COPY . .
10
+
11
+RUN bundle install
12
13
CMD ["ruby", "app.rb"]
developing/webapp/Gemfile
@@ -0,0 +1,5 @@
1
+source 'https://rubygems.org'
+gem 'sinatra', '2.0'
+gem 'pg', '1.0.0'
0 commit comments