Skip to content

Commit

Permalink
Use a manifest file to install dependencies
Browse files Browse the repository at this point in the history
[refs #44712567f522]
  • Loading branch information
jfahrer committed May 5, 2018
1 parent 9c4d342 commit 5519300
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 6 additions & 3 deletions developing/webapp/Dockerfile
Expand Up @@ -2,9 +2,12 @@ FROM ruby:2.4.3-alpine

WORKDIR /app

RUN apk update && apk add build-base postgresql-dev
RUN gem install sinatra pg
RUN apk add --no-cache \
build-base \
postgresql-dev

COPY app.rb .
COPY . .

RUN bundle install

CMD ["ruby", "app.rb"]
5 changes: 5 additions & 0 deletions developing/webapp/Gemfile
@@ -0,0 +1,5 @@
source 'https://rubygems.org'

gem 'sinatra', '2.0'
gem 'pg', '1.0.0'

0 comments on commit 5519300

Please sign in to comment.