Hello ,
I’ve been following setup from heroiclabs and for local work everything went well. When I try to run through docker as I observed dockerfile doesn’t create necessary shard file for nakama to import go module.
Here is my Dockerfile
FROM heroiclabs/nakama-pluginbuilder:3.3.0 AS go-builder
ENV GO111MODULE on
ENV CGO_ENABLED 1
WORKDIR /app
COPY go.mod .
COPY main.go .
COPY vendor/ vendor/
RUN go build --trimpath --mod=vendor --buildmode=plugin -o ./modules/backend.so
FROM heroiclabs/nakama:3.3.0
COPY --from=go-builder ./modules/backend.so /nakama/data/modules/
COPY local.yml .