1 # Basic Dockerfile to run cookstyle linting
2 # run: docker build -t chef-test .
3 FROM ruby:3.1-alpine as build
5 # Add Gem build requirements
6 RUN apk add --no-cache build-base
11 # Add Gemfile and Gemfile.lock
15 RUN gem install bundler \
16 && bundle config build.nokogiri --use-system-libraries \
17 && bundle config --global jobs $(nproc) \
24 RUN bundle exec cookstyle -f fuubar