]> git.openstreetmap.org Git - chef.git/blob - Dockerfile
Merge pull request #364 from osm-hr/html-torrents
[chef.git] / Dockerfile
1 # Basic Dockerfile to run cookstyle linting
2 # run: docker build -t chef-test .
3 FROM ruby:2.7-alpine as build
4
5 # Add Gem build requirements
6 RUN apk add --no-cache build-base
7
8 # Create app directory
9 WORKDIR /app
10
11 # Add Gemfile and Gemfile.lock
12 ADD Gemfile* ./
13
14 # Install Gems
15 RUN gem install bundler \
16     && bundle config build.nokogiri --use-system-libraries \
17     && bundle config --global jobs $(nproc) \
18     && bundle install
19
20 # Add repo
21 ADD . .
22
23 # Run linting
24 RUN bundle exec cookstyle -f fuubar