Skip to content

The only tool you need to know what is happening and how to fix it.

removed hardcoded GOARCH=amd64 from sqlite Dockerfile so Go uses the native architecture of the build machine (#202)

Liriel0b49342fe9fd
diff --git a/Dockerfile.sqlite b/Dockerfile.sqlite
index b2830bf5..7de6451f 100644
--- a/Dockerfile.sqlite
+++ b/Dockerfile.sqlite
@@ -39,7 +39,7 @@ RUN go mod download
# Build WITHOUT the pgch tag so the SQLite codepath in app/db/db_sqlite.go
# is selected. modernc.org/sqlite is pure Go, so CGO_ENABLED=0 is fine.
-RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o /traceway ./cmd/traceway
+RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /traceway ./cmd/traceway
# ==============================================================================
# Stage 3: Minimal runtime image