Skip to content

Commit 54dce8a

Browse files
committed
docker file copy libstdc++.so.6 for linux images
1 parent 275206f commit 54dce8a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎.docker/Dockerfile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ EOF
8686
#
8787
# libgcc_s.so.1 provides the unwinder symbols (_Unwind_*) the dynamically
8888
# linked binary needs at runtime. The DHI runtime image doesn't ship it.
89+
# libstdc++.so.6 is the same story for BoringSSL, which is C++.
8990
COPY src ./src
9091
RUN <<'EOF'
9192
set -eu
@@ -94,6 +95,7 @@ strip target/release/proxy
9495
mkdir -p /rootfs/etc/proxy /rootfs/var/lib/proxy/certs /rootfs/usr/lib
9596
cp target/release/proxy /rootfs/proxy
9697
cp -L /usr/lib/libgcc_s.so.1 /rootfs/usr/lib/libgcc_s.so.1
98+
cp -L /usr/lib/libstdc++.so.6 /rootfs/usr/lib/libstdc++.so.6
9799
EOF
98100

99101

@@ -109,6 +111,7 @@ COPY --from=builder --chown=65532:65532 /rootfs/proxy /usr/local/bin/proxy
109111
COPY --from=builder --chown=65532:65532 /rootfs/etc/proxy /etc/proxy
110112
COPY --from=builder --chown=65532:65532 /rootfs/var/lib/proxy /var/lib/proxy
111113
COPY --from=builder /rootfs/usr/lib/libgcc_s.so.1 /usr/lib/libgcc_s.so.1
114+
COPY --from=builder /rootfs/usr/lib/libstdc++.so.6 /usr/lib/libstdc++.so.6
112115

113116
ENV CONFIG_PATH=/etc/proxy/config.toml \
114117
CERT_DIR=/var/lib/proxy/certs \

0 commit comments

Comments
 (0)