Skip to content

Commit

Permalink
Add libyaml headers to builder image.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sengi committed Oct 11, 2023
1 parent b2aca20 commit 4472621
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builder.Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down

0 comments on commit 4472621

Please sign in to comment.