Skip to content

Commit 5519300

Browse files
committed
Use a manifest file to install dependencies
[refs #44712567f522]
1 parent 9c4d342 commit 5519300

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

developing/webapp/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ FROM ruby:2.4.3-alpine
22

33
WORKDIR /app
44

5-
RUN apk update && apk add build-base postgresql-dev
6-
RUN gem install sinatra pg
5+
RUN apk add --no-cache \
6+
build-base \
7+
postgresql-dev
78

8-
COPY app.rb .
9+
COPY . .
10+
11+
RUN bundle install
912

1013
CMD ["ruby", "app.rb"]

developing/webapp/Gemfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'sinatra', '2.0'
4+
gem 'pg', '1.0.0'
5+

0 commit comments

Comments
 (0)