X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/3b9ad925609e946b4095231d55a59d80361cc397..787431aa384f07d403f422ca64447e8bdf794e3f:/Dockerfile diff --git a/Dockerfile b/Dockerfile index 1dca54301..4e72aec8b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,17 @@ -FROM ruby:2.4 +# Basic Dockerfile to run cookstyle linting +# run: docker build -t test . +FROM ruby:2.6 WORKDIR /app RUN apt-get update \ - && apt-get install -y --no-install-recommends libssl1.0-dev + && apt-get install -y --no-install-recommends libssl-dev ADD Gemfile* /app/ -RUN gem install bundler && bundle config build.nokogiri --use-system-libraries && bundle install --jobs 4 --retry 5 +RUN gem install bundler --no-document \ + && bundle config build.nokogiri --use-system-libraries \ + && bundle install --jobs $(nproc) --retry 5 ADD . /app/ -RUN bundle exec rubocop -f fuubar -RUN bundle exec foodcritic -f any cookbooks +RUN bundle exec cookstyle -f fuubar