From ebdf5decbc244155e2e75e45dfbbbe40ec2e1775 Mon Sep 17 00:00:00 2001 From: dsx137 <70027572+dsx137@users.noreply.github.com> Date: Thu, 2 Jul 2026 09:49:43 +0800 Subject: [PATCH] fix(core): reorder Dockerfile ARG declarations --- build/images/openim-server/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build/images/openim-server/Dockerfile b/build/images/openim-server/Dockerfile index 4bd404171..6adecf484 100644 --- a/build/images/openim-server/Dockerfile +++ b/build/images/openim-server/Dockerfile @@ -1,15 +1,15 @@ FROM golang:alpine AS builder -ARG CMD_PATH -ARG BINARY_NAME -ARG RELEASE=false - ENV SERVER_DIR=/openim-server WORKDIR $SERVER_DIR COPY . . RUN go mod tidy +ARG CMD_PATH +ARG BINARY_NAME +ARG RELEASE=false + RUN if [ "$RELEASE" = "true" ]; then \ go build -trimpath -ldflags "-s -w" -o _output/${BINARY_NAME} ./${CMD_PATH}; \ else \