From eb510e0b8c6e75fa571cdd732603e648ebd57d4c Mon Sep 17 00:00:00 2001 From: Miel Donkers Date: Mon, 24 Jul 2023 11:57:12 +0200 Subject: [PATCH] TARGETARCH cannot have a default value, and set GOARCH similarly --- src/otelcollector/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/otelcollector/Dockerfile b/src/otelcollector/Dockerfile index 4281d69ae2..13df9c53e6 100644 --- a/src/otelcollector/Dockerfile +++ b/src/otelcollector/Dockerfile @@ -3,14 +3,14 @@ FROM golang:latest as build -ARG TARGETARCH=arm64 +ARG TARGETARCH ARG BUILDER_VERSION=0.81.0 RUN curl -L -o /builder https://github.com/open-telemetry/opentelemetry-collector/releases/download/cmd%2Fbuilder%2Fv${BUILDER_VERSION}/ocb_${BUILDER_VERSION}_linux_${TARGETARCH} RUN chmod +x /builder WORKDIR /build COPY ./src/otelcollector/manifest.yml ./ -ENV GOARCH=arm64 +ENV GOARCH=$TARGETARCH ENV CGO_ENABLED=0 RUN /builder --config ./manifest.yml --output-path /build/_build RUN ls /build/_build