]> git.openstreetmap.org Git - chef.git/blob - Dockerfile
docs: improve contributor testing guide and dockerised cookstyle
[chef.git] / Dockerfile
1 # Docker image used for running repo tooling (e.g. Cookstyle) in local containers.
2 FROM ruby:3.3-trixie AS build
3
4 # Add Gem build requirements
5 RUN apt-get update \
6         && apt-get install -y --no-install-recommends \
7             build-essential \
8             pkg-config \
9             libxml2-dev \
10             libxslt1-dev \
11             zlib1g-dev \
12         && rm -rf /var/lib/apt/lists/*
13
14 # Create app directory
15 WORKDIR /usr/src/app
16
17 # Add Gemfile and Gemfile.lock
18 ADD Gemfile* ./
19
20 # Install Gems
21 RUN gem install bundler -v 2.6.9 \
22     && bundle config set build.nokogiri --use-system-libraries \
23     && bundle config set --global jobs $(nproc) \
24     && bundle install