From 5461f85240c486a4f0e88ca016143e7392d2e552 Mon Sep 17 00:00:00 2001 From: Krzysztof Osiniak Date: Sat, 29 Nov 2025 20:36:22 +0100 Subject: [PATCH] Update README and weed/Makefile (#7571) * Add link to wiki installation page in README * Add building for docker in weed/Makefile Building without `CGO_ENABLED=0` and using the executable in docker can result in a docker container exiting with an error * Update README.md Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> * Add GOOS=linux to build_docker target for cross-compilation --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: Chris Lu --- README.md | 2 ++ weed/Makefile | 3 +++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 0f9028d1b..381abfff6 100644 --- a/README.md +++ b/README.md @@ -520,6 +520,8 @@ cd seaweedfs/weed && make install Once this is done, you will find the executable "weed" in your `$GOPATH/bin` directory +For more installation options, including how to run with Docker, see the [Getting Started guide](https://github.com/seaweedfs/seaweedfs/wiki/Getting-Started). + [Back to TOC](#table-of-contents) ## Disk Related Topics ## diff --git a/weed/Makefile b/weed/Makefile index ac25d008b..38c0d9317 100644 --- a/weed/Makefile +++ b/weed/Makefile @@ -9,6 +9,9 @@ all: install install: go install -ldflags="-s -w" +build_docker: + CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" + clean: go clean $(SOURCE_DIR) rm -f $(BINARY)