diff --git a/docker/dockerfiles/artifacts/artifact.Dockerfile b/docker/dockerfiles/artifacts/artifact.Dockerfile index 6d65522d40b2e..84f616d6b9951 100644 --- a/docker/dockerfiles/artifacts/artifact.Dockerfile +++ b/docker/dockerfiles/artifacts/artifact.Dockerfile @@ -48,7 +48,7 @@ RUN apt-get update -y && apt-get install -y --no-install-recommends wget tar xz- ADD 'https://dtdg.co/latest-java-tracer' /datadog/dd-java-agent.jar # Get ddprof for BE profiling -RUN imagearch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) \ +RUN imagearch=$(arch | sed 's/aarch64/arm64/; s/x86_64/amd64/') \ && wget --no-check-certificate "https://github.com/DataDog/ddprof/releases/download/v0.15.3/ddprof-0.15.3-${imagearch}-linux.tar.xz" -O ddprof-linux.tar.xz \ && tar xvf ddprof-linux.tar.xz && mkdir -p /datadog/ \ && mv ddprof/bin/ddprof /datadog/ \ @@ -56,7 +56,6 @@ RUN imagearch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) \ FROM busybox:latest ARG RELEASE_VERSION -ARG TARGETARCH LABEL org.opencontainers.image.source="https://github.com/starrocks/starrocks" LABEL org.starrocks.version=${RELEASE_VERSION:-"UNKNOWN"}