Browse Source

fix(docker): add libgcc to Alpine runtime for Rust volume server (#8883)

The Rust weed-volume binary requires libgcc_s.so.1 for stack unwinding
(_Unwind_* symbols). Without it, the binary fails to load in the Alpine
container with "Error loading shared library libgcc_s.so.1".
pull/5490/merge
Chris Lu 1 day ago
parent
commit
24805ff478
  1. 2
      docker/Dockerfile.go_build

2
docker/Dockerfile.go_build

@ -51,7 +51,7 @@ COPY --from=builder /go/src/github.com/seaweedfs/seaweedfs/docker/entrypoint.sh
# Install dependencies and create non-root user # Install dependencies and create non-root user
RUN apk upgrade --no-cache zlib && \ RUN apk upgrade --no-cache zlib && \
apk add --no-cache fuse curl su-exec && \
apk add --no-cache fuse curl su-exec libgcc && \
addgroup -g 1000 seaweed && \ addgroup -g 1000 seaweed && \
adduser -D -u 1000 -G seaweed seaweed adduser -D -u 1000 -G seaweed seaweed

Loading…
Cancel
Save