From dfc37a3a3d2bb5c960b78848f11995d80491f607 Mon Sep 17 00:00:00 2001 From: Du Peng Date: Thu, 12 May 2022 10:33:41 +0200 Subject: [PATCH] fix bug: Error loading shared library ld-linux-x86-64.so.2 --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index b9f4fc3a8..941a8f4aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,9 @@ RUN apk update && apk upgrade && \ postgresql-client \ libxml2-dev \ libxslt-dev \ + libsass-dev \ + libsass \ + libc6-compat \ libidn-dev && \ # Install buildtime apk dependencies apk add --update --no-cache --virtual .build-deps \ @@ -30,6 +33,10 @@ RUN apk update && apk upgrade && \ linux-headers \ patch +# Fix bug: LoadError: Could not open library '/usr/local/bundle/gems/sassc-2.1.0-x86_64-linux/lib/sassc/libsass.so': Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /usr/local/bundle/gems/sassc-2.1.0-x86_64-linux/lib/sassc/libsass.so) +# add libsass-dev libsass libc6-compat and env below +ENV LD_LIBRARY_PATH=/lib64 + RUN gem install bundler # Throw error if Gemfile has been modified since Gemfile.lock