Skip to content

Commit

Permalink
Add basic Dockerfile for linting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Firefishy committed May 29, 2019
1 parent 0f7c474 commit 3b9ad92
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM ruby:2.4

WORKDIR /app

RUN apt-get update \
&& apt-get install -y --no-install-recommends libssl1.0-dev

ADD Gemfile* /app/
RUN gem install bundler && bundle config build.nokogiri --use-system-libraries && bundle install --jobs 4 --retry 5

ADD . /app/

RUN bundle exec rubocop -f fuubar
RUN bundle exec foodcritic -f any cookbooks

0 comments on commit 3b9ad92

Please sign in to comment.