This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
# 1. Build the Nakama plugin
|
# 1. Build the Nakama plugin
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
FROM golang:1.22 AS plugin_builder
|
FROM --platform=linux/arm64 golang:1.22 AS plugin_builder
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
build-essential \
|
build-essential \
|
||||||
@@ -25,7 +25,7 @@ RUN mkdir -p build && \
|
|||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
# 2. Build final Nakama image
|
# 2. Build final Nakama image
|
||||||
# -----------------------------------------------------
|
# -----------------------------------------------------
|
||||||
FROM heroiclabs/nakama:3.21.0 AS nakama
|
FROM --platform=linux/arm64 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