From 4472621e5d3fe11156a7cc1dd8f8ae9187f40f0e Mon Sep 17 00:00:00 2001 From: Chris Banks Date: Wed, 11 Oct 2023 12:12:16 +0100 Subject: [PATCH] Add libyaml headers to builder image. The `psych` gem needs to compile against libyaml. Not sure why we're only running into this now (maybe Rails was happy with our stock version of `psych` until recently?) but in any case it seems sensible to include headers in the builder image for libraries that we ship in our base image. --- builder.Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builder.Dockerfile b/builder.Dockerfile index 846dc1c..3418ad0 100644 --- a/builder.Dockerfile +++ b/builder.Dockerfile @@ -1,7 +1,9 @@ ARG RUBY_MAJOR FROM ghcr.io/alphagov/govuk-ruby-base:${RUBY_MAJOR} -RUN install_packages g++ libc-dev libssl-dev make git gpg libmariadb-dev-compat libpq-dev xz-utils +RUN install_packages \ + g++ libc-dev libssl-dev make git gpg libmariadb-dev-compat libpq-dev \ + libyaml-dev xz-utils # Environment variables to make build cleaner and faster ENV BUNDLE_IGNORE_MESSAGES=1 \