From ede51e00d9b2887725b8c81e5736ee4866c35abc Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Fri, 28 Mar 2025 16:25:10 +0100 Subject: [PATCH] Update local development docs - clarify pocketbase binary needs to be (#211) built using CGO_ENABLED=0 if not building on musl since the Docker base image is using Alpine linux. --- docs/src/content/docs/getting-started/local-development.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/src/content/docs/getting-started/local-development.md b/docs/src/content/docs/getting-started/local-development.md index ff149dea..1cd03949 100644 --- a/docs/src/content/docs/getting-started/local-development.md +++ b/docs/src/content/docs/getting-started/local-development.md @@ -35,6 +35,12 @@ When you are done with development and would like to build wanderer for producti If you modified code in any of the `*.go` files make sure to build an updated binary with `go build`. In case you only edited tables via the `PocketBase` admin panel you don't need to do anything. The database will be migrated automatically. +Since the Docker image is using Alpine linux with musl, you need to compile the binary +using musl or using `CGO_ENABLED=false` as shown below. + +```bash +env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pocketbase_amd64 +``` ### Frontend