From 316433e71808ec6a130e81c287caa8b2a98f45a5 Mon Sep 17 00:00:00 2001 From: mrproliu <741550557@qq.com> Date: Tue, 17 Oct 2023 21:08:50 +0800 Subject: [PATCH] Fix Docker image not supporting the `arm64` platform (#125) --- CHANGES.md | 1 + Dockerfile | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 03214fed..64a747dc 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -16,6 +16,7 @@ Release Notes. * Add `Tracing APIs` document into `Manual APIs`. #### Bug Fixes +* Fix Docker image not supporting the `arm64` platform. #### Issues and PR - All issues are [here](https://github.com/apache/skywalking/milestone/189?closed=1) diff --git a/Dockerfile b/Dockerfile index b5e3b31f..1ed427aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,9 +22,12 @@ ARG BASE_BUILDER_IMAGE='golang:1.18' FROM ${BASE_BUILDER_IMAGE} as builder # Go Agent Version ARG VERSION +# Current ARCH +ARG TARGETARCH + WORKDIR /skywalking-go COPY . . -RUN VERSION=$VERSION make -C tools/go-agent linux +RUN VERSION=$VERSION ARCH=$TARGETARCH make -C tools/go-agent linux FROM ${BASE_GO_IMAGE}