From 3b9ad925609e946b4095231d55a59d80361cc397 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Wed, 29 May 2019 20:55:47 +0100 Subject: [PATCH] Add basic Dockerfile for linting tests --- .dockerignore | 1 + Dockerfile | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..6b8710a71 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +.git diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..1dca54301 --- /dev/null +++ b/Dockerfile @@ -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 -- 2.39.5