From c8108e31267e8114251dcdc184b3ba73cc81e19b Mon Sep 17 00:00:00 2001 From: Koen van de Sande Date: Tue, 27 Feb 2024 11:46:25 +0100 Subject: [PATCH] Fix building of binaries inside Docker container to address https://github.com/aws-observability/aws-otel-collector/issues/2659 --- cmd/awscollector/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/awscollector/Dockerfile b/cmd/awscollector/Dockerfile index f7abf19498..48172efca5 100644 --- a/cmd/awscollector/Dockerfile +++ b/cmd/awscollector/Dockerfile @@ -29,7 +29,7 @@ RUN apk --update add ca-certificates # Build Stage # # # ################################ -FROM golang:1.20 AS prep-build +FROM golang:1.22 AS prep-build ARG TARGETARCH @@ -48,9 +48,11 @@ COPY . . # build RUN make ${TARGETARCH}-build +RUN make ${TARGETARCH}-build-healthcheck # move RUN mv /workspace/build/linux/$TARGETARCH/aoc /workspace/awscollector +RUN mv /workspace/build/linux/$TARGETARCH/healthcheck /workspace/healthcheck ################################ # Copy Stage #