Skip to content

Commit

Permalink
Use gemfile
Browse files Browse the repository at this point in the history
  • Loading branch information
David Garcia committed Sep 14, 2018
1 parent e849e0c commit c38190a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
28 changes: 10 additions & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,20 @@
FROM ruby:2.4.4-alpine
FROM ruby:2.5.1-alpine

RUN apk add --no-cache --virtual runtime-deps \
git \
bash \
&& apk add --no-cache --virtual build-deps \
alpine-sdk \
cmake \
g++ \
openssl-dev
openssl-dev \
alpine-sdk \
cmake \
g++

RUN mkdir /usr/src/app
WORKDIR /usr/src/app

RUN gem install pronto -v 0.9.5
RUN gem install pronto-brakeman -v 0.9.1 \
&& gem install pronto-fasterer -v 0.9.0 \
&& gem install pronto-flay -v 0.9.0 \
&& gem install pronto-haml -v 0.9.0 \
&& gem install pronto-jshint -v 0.9.0 \
&& gem install pronto-rails_best_practices -v 0.9.0 \
&& gem install pronto-reek -v 0.9.1 \
&& gem install pronto-rubocop -v 0.9.1 \
&& gem install pronto-scss -v 0.9.1
ADD Gemfile.pronto /usr/src/app/Gemfile.pronto

RUN apk del build-deps
RUN gem install bundler
RUN BUNDLE_GEMFILE=Gemfile.pronto bundle install -j16

CMD ["pronto", "run"]

ENTRYPOINT ["BUNDLE_GEMFILE=Gemfile.pronto","bundle", "exec", "pronto"]
12 changes: 12 additions & 0 deletions Gemfile.pronto
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
source 'https://rubygems.org'

gem 'pronto', '= 0.9.5'
gem 'pronto-brakeman', '= 0.9.1'
gem 'pronto-fasterer', '= 0.9.0'
gem 'pronto-flay', '= 0.9.0'
gem 'pronto-haml', '= 0.9.0'
gem 'pronto-jshint', '= 0.9.0'
gem 'pronto-rails_best_practices', '= 0.9.0'
gem 'pronto-reek', '= 0.9.1'
gem 'pronto-rubocop', '= 0.9.1'
gem 'pronto-scss', '= 0.9.1'

0 comments on commit c38190a

Please sign in to comment.