]> git.openstreetmap.org Git - chef.git/blobdiff - Dockerfile
Update testing Dockerfile
[chef.git] / Dockerfile
index 1dca54301ca812919c5eb3061a9250efb5a0694b..01e194f4a765660daf4294d5cbd74f04116ca9d2 100644 (file)
@@ -1,14 +1,15 @@
-FROM ruby:2.4
+FROM ruby:2.6
 
 WORKDIR /app
 
 RUN apt-get update \
 
 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/
 
 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/
 
 
 ADD . /app/
 
-RUN bundle exec rubocop -f fuubar
-RUN bundle exec foodcritic -f any cookbooks
+RUN bundle exec cookstyle -f fuubar