This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
# 1. Build the Nakama plugin (ARM64)
|
# 1. Build the Nakama plugin
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
FROM golang:1.22-alpine AS plugin_builder
|
FROM golang:1.22-alpine AS plugin_builder
|
||||||
|
|
||||||
# Install dependencies needed for CGO plugin build
|
# Install dependencies needed for CGO plugin build
|
||||||
RUN apk add --no-cache git build-base
|
RUN apk add --no-cache git build-base binutils musl-dev
|
||||||
|
|
||||||
WORKDIR /workspace
|
WORKDIR /workspace
|
||||||
|
|
||||||
@@ -25,9 +25,9 @@ RUN mkdir -p build && \
|
|||||||
|
|
||||||
|
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
# 2. Build final Nakama image (ARM64)
|
# 2. Build final Nakama image
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
FROM --platform=linux/arm64 heroiclabs/nakama:3.21.0 AS nakama
|
FROM heroiclabs/nakama:3.21.0 AS nakama
|
||||||
|
|
||||||
# Copy plugin from builder stage
|
# Copy plugin from builder stage
|
||||||
COPY --from=plugin_builder /workspace/build/main.so /nakama/data/modules/main.so
|
COPY --from=plugin_builder /workspace/build/main.so /nakama/data/modules/main.so
|
||||||
|
|||||||
Reference in New Issue
Block a user