Skip to content

Commit

Permalink
Set environment variables for gcompat
Browse files Browse the repository at this point in the history
  LINKER_PATH=/lib/ld-musl-x86_64.so.1 LOADER_NAME=ld-linux-x86-64.so.2
  • Loading branch information
inulty-dfe committed Jul 12, 2024
1 parent 4a28dad commit 98b1b97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"]

0 comments on commit 98b1b97

Please # to comment.