Skip to content

Commit 316433e

Browse files
authored
Fix Docker image not supporting the arm64 platform (#125)
1 parent 52d96af commit 316433e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Release Notes.
1616
* Add `Tracing APIs` document into `Manual APIs`.
1717

1818
#### Bug Fixes
19+
* Fix Docker image not supporting the `arm64` platform.
1920

2021
#### Issues and PR
2122
- All issues are [here](https://github.com/apache/skywalking/milestone/189?closed=1)

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ ARG BASE_BUILDER_IMAGE='golang:1.18'
2222
FROM ${BASE_BUILDER_IMAGE} as builder
2323
# Go Agent Version
2424
ARG VERSION
25+
# Current ARCH
26+
ARG TARGETARCH
27+
2528
WORKDIR /skywalking-go
2629
COPY . .
27-
RUN VERSION=$VERSION make -C tools/go-agent linux
30+
RUN VERSION=$VERSION ARCH=$TARGETARCH make -C tools/go-agent linux
2831

2932
FROM ${BASE_GO_IMAGE}
3033

0 commit comments

Comments
 (0)