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}"]