This commit is contained in:
parent
bdc4ade8cf
commit
ab51b4b504
1 changed files with 4 additions and 6 deletions
|
|
@ -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 .
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue