From 19cd1e090d2844d5ab455644a21680fed1d2696a Mon Sep 17 00:00:00 2001 From: s22527119-star Date: Tue, 16 Jun 2026 21:31:39 +0330 Subject: [PATCH] Update Dockerfile --- build/images/openim-server/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/build/images/openim-server/Dockerfile b/build/images/openim-server/Dockerfile index e821260a6..1a0467266 100644 --- a/build/images/openim-server/Dockerfile +++ b/build/images/openim-server/Dockerfile @@ -13,8 +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}; \ - fi + RUN go build -o myapp ./cmd/open-im-api FROM alpine:latest @@ -27,4 +26,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}"]