diff --git a/docker/dockerfiles/artifacts/artifact.Dockerfile b/docker/dockerfiles/artifacts/artifact.Dockerfile index 6d65522d40b2e9..60a6eefb46cae4 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/ \