diff --git a/nakama/Dockerfile b/nakama/Dockerfile index 96296bc..9927656 100644 --- a/nakama/Dockerfile +++ b/nakama/Dockerfile @@ -12,15 +12,13 @@ FROM heroiclabs/nakama-pluginbuilder:3.35.1 AS builder WORKDIR /backend -# Copy Go module files +# Copy Go module files and source COPY go-modules/go.mod go-modules/go.sum* ./ - -# Download dependencies -RUN go mod download 2>/dev/null || go mod tidy - -# Copy source COPY go-modules/*.go ./ +# Generate go.sum and download dependencies +RUN go mod tidy + # Build the plugin as a shared library RUN go build -buildmode=plugin -trimpath -o backend.so .