From 301f540904015f6bed5cf1a379feaef0ca819774 Mon Sep 17 00:00:00 2001 From: s22527119-star Date: Wed, 17 Jun 2026 10:07:31 +0330 Subject: [PATCH] Update Dockerfile --- build/images/openim-server/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/images/openim-server/Dockerfile b/build/images/openim-server/Dockerfile index e821260a6..f7eed7b82 100644 --- a/build/images/openim-server/Dockerfile +++ b/build/images/openim-server/Dockerfile @@ -13,7 +13,7 @@ RUN go mod tidy RUN if [ "$RELEASE" = "true" ]; then \ go build -trimpath -ldflags "-s -w" -o _output/${BINARY_NAME} ./${CMD_PATH}; \ else \ - go build -o _output/${BINARY_NAME} ./${CMD_PATH}; \ + RUN go build -o myapp ./cmd/server; \ fi FROM alpine:latest @@ -27,4 +27,4 @@ WORKDIR $SERVER_DIR COPY --from=builder $SERVER_DIR/_output $SERVER_DIR/_output -ENTRYPOINT ["sh", "-c", "_output/${BINARY_NAME}"] \ No newline at end of file +ENTRYPOINT ["sh", "-c", "_output/${BINARY_NAME}"]