This is an automated email from the ASF dual-hosted git repository.

liuhan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-satellite.git


The following commit(s) were added to refs/heads/main by this push:
     new ce3736d  Update Dockerfile to Fix arm64 docker image  (#142)
ce3736d is described below

commit ce3736de46edf771edd3b62a1e68ff7c2374717c
Author: guangdashao <[email protected]>
AuthorDate: Fri Jul 28 15:48:24 2023 +0800

    Update Dockerfile to Fix arm64 docker image  (#142)
---
 docker/Dockerfile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/docker/Dockerfile b/docker/Dockerfile
index 8f51f93..3a56d0c 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -17,6 +17,7 @@
 FROM golang:1.19 as build
 
 ARG VERSION="latest"
+ARG TARGETARCH
 
 ENV CGO_ENABLED=0
 
@@ -24,8 +25,8 @@ WORKDIR /src
 
 COPY . .
 
-RUN VERSION=$VERSION make linux
-RUN mv /src/bin/skywalking-satellite-${VERSION}-linux-amd64 
/src/bin/skywalking-satellite
+RUN VERSION=$VERSION make ARCH=${TARGETARCH} linux
+RUN mv /src/bin/skywalking-satellite-${VERSION}-linux-${TARGETARCH} 
/src/bin/skywalking-satellite
 
 FROM alpine:3
 

Reply via email to