I’m setting up a new server using Nakama version 3.25.0 and common version 1.35.0, but it appears there’s a toolchain version conflict within the Docker image that’s causing the following error.
Following is docker file code
# build go runtime modules
FROM heroiclabs/nakama-pluginbuilder:3.25.0 AS builder
ENV GO111MODULE on
ENV CGO_ENABLED 1
WORKDIR /backend
COPY ./src/runtime-modules/go/ .
RUN go mod vendor
RUN go build --trimpath --mod=vendor --buildmode=plugin -o ./backend.so
# final image
FROM heroiclabs/nakama:3.25.0
# copy go build from go builder to this image
COPY --from=builder /backend/backend.so /nakama/data/modules/
# copy config.yml
COPY config.yml /nakama/data/
In the Go directory, the go mod vendor
command runs successfully, but when executing docker compose build
, it throws the attached error. I have also updated my system’s Go version to 1.24.0, but the issue persists.