oci-images/nokogiri-test/mri-3.0.dockerfile
FROM ruby:3.0
# include_file debian-prelude.step
# -*- dockerfile -*-
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y apt-utils
# include_file debian-valgrind.step
# -*- dockerfile -*-
RUN apt-get install -y valgrind
# include_file debian-libxml-et-al.step
# -*- dockerfile -*-
RUN apt-get install -y libxslt-dev libxml2-dev zlib1g-dev pkg-config
RUN apt-get install -y libyaml-dev # for psych 5
# include_file update-bundler.step
# -*- dockerfile -*-
RUN gem install bundler
# include_file bundle-install.step
# -*- dockerfile -*-
COPY Gemfile nokogiri/
COPY Gemfile.lock nokogiri/
COPY nokogiri.gemspec nokogiri/
RUN gem install bundler -v "$(grep -A 1 "BUNDLED WITH" nokogiri/Gemfile.lock | tail -n 1)"
RUN cd nokogiri && bundle install