From 98b1b97a7a1f480bebae1d99073380e8610eaed3 Mon Sep 17 00:00:00 2001 From: Iain McNulty Date: Fri, 12 Jul 2024 10:57:53 +0100 Subject: [PATCH] Set environment variables for gcompat LINKER_PATH=/lib/ld-musl-x86_64.so.1 LOADER_NAME=ld-linux-x86-64.so.2 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b8466968729..996cece3cf3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ FROM ${BASE_RUBY_IMAGE} AS gems-node-modules RUN apk -U upgrade && \ apk add --update --no-cache git gcc libc-dev make postgresql-dev build-base \ libxml2-dev libxslt-dev nodejs yarn tzdata libpq libxml2 libxslt graphviz chromium \ - gcompat +RUN LINKER_PATH=/lib/ld-musl-x86_64.so.1 LOADER_NAME=ld-linux-x86-64.so.2 apk add --update --no-cache gcompat RUN echo "Europe/London" > /etc/timezone && \ cp /usr/share/zoneinfo/Europe/London /etc/localtime @@ -90,4 +90,4 @@ RUN echo ${SHA} > public/check # new code on an old schema (which will be updated a moment later) to running # old code on the new schema (which will require another deploy or other manual # intervention to correct). -CMD bundle exec rails db:migrate:ignore_concurrent_migration_exceptions && bundle exec rails server -b 0.0.0.0 +CMD ["bundle", "exec", "rails", "db:migrate:ignore_concurrent_migration_exceptions", "&&", "bundle", "exec", "rails", "server", "-b", "0.0.0.0"]