Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zengxs committed Nov 22, 2024
1 parent 06b61dd commit e903274
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ RUN set -ex \
automake \
autoconf \
libtool \
patchelf \
ca-certificates \
curl \
libssl-dev \
libpcre3-dev \
zlib1g-dev
zlib1g-dev

# install build dependencies for additional dynamic modules
RUN set -ex \
Expand All @@ -43,9 +44,9 @@ RUN set -ex \
ENV SREGEX_INC=/opt/sregex/include
ENV SREGEX_LIB=/opt/sregex/lib

# patch all .so file use absolute path as rpath
# patch all .so file soname use absolute path
RUN set -ex \
&& find /opt -name 'lib*.so*' | xargs -I{} patchelf --set-rpath '$ORIGIN' {}
&& find /opt -name 'lib*.so*' -exec patchelf --set-soname {} {} \;

RUN set -ex \
&& cd /usr/src/nginx \
Expand Down

0 comments on commit e903274

Please sign in to comment.