Merge pull request #5567 from kolyshkin/dockerfile-ldconfig

Dockerfile: use ldconfig for dynamic libraries
This commit is contained in:
lfbzhm authored and GitHub committed 2026-10-23 06:19:36 +00:00
commit 9c85446f0f
2 files changed
+5 -1

No files matched your search

+2
View File
@@ -305,6 +305,8 @@ jobs:
# needs it.
- name: build docker image
run: make runcimage
- name: smoke test docker image
run: make integration TESTPATH=/run.bats
- name: make releaseall
run: make releaseall
- name: upload artifacts
+3 -1
View File
@@ -75,7 +75,9 @@ RUN mkdir -p $DYLIB_DIR \
&& /tmp/script/build-libpathrs.sh "$LIBPATHRS_VERSION" $DYLIB_DIR $RELEASE_ARCHES
ENV LIBPATHRS_VERSION=$LIBPATHRS_VERSION
ENV LD_LIBRARY_PATH=$DYLIB_DIR/lib
# Use ldconfig rather than LD_LIBRARY_PATH, since runc init does not inherit
# the environment.
RUN echo "$DYLIB_DIR/lib" > /etc/ld.so.conf.d/runc-dylibs.conf && ldconfig
ENV PKG_CONFIG_PATH=$DYLIB_DIR/lib/pkgconfig
# Prevent the "fatal: detected dubious ownership in repository" git complain during build.