1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-30 19:52:20 +01:00

fix bug: Error loading shared library ld-linux-x86-64.so.2

This commit is contained in:
Du Peng 2022-05-12 10:33:41 +02:00
parent bdf42f7b5d
commit dfc37a3a3d

View File

@ -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