mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-13 01:50:40 +02:00
fix: build statically linked binary for Alpine Linux
- Add CGO_ENABLED=0 to go build command - Creates statically linked binary compatible with Alpine (musl libc) - Fixes 'not found' error caused by missing glibc dynamic linker - Add file command to verify static linking in build output
This commit is contained in:
@@ -48,12 +48,13 @@ jobs:
|
||||
|
||||
- name: Build SeaweedFS binary
|
||||
run: |
|
||||
echo "Building SeaweedFS binary..."
|
||||
echo "Building SeaweedFS binary (statically linked for Alpine)..."
|
||||
cd weed
|
||||
go build -o ../docker/weed
|
||||
CGO_ENABLED=0 go build -o ../docker/weed
|
||||
cd ../docker
|
||||
# Dockerfile.local expects these files in the build context
|
||||
ls -la weed filer.toml entrypoint.sh
|
||||
file weed
|
||||
echo "✓ SeaweedFS binary built and ready for Docker build"
|
||||
|
||||
- name: Build SeaweedFS Java dependencies
|
||||
|
||||
Reference in New Issue
Block a user