luctus PRO said almost 2 years ago on Docker on Rails 7 :
Oh! I found it.
We need to install the gcompat package in the alpine distro, so the Dockerfile should be like this:

RUN apk add --no-cache --update \
  build-base \
  git \
  postgresql-dev \
  nodejs \
  yarn \
  vips \
  tzdata \
  gcompat \
  && rm -rf /var/cache/apk/*


Based on [this issue](https://github.com/sparklemotion/nokogiri/issues/2430)