From 2ee96585d230338ec15e3a324249751f8418b763 Mon Sep 17 00:00:00 2001 From: Miel Donkers Date: Mon, 24 Jul 2023 14:02:14 +0200 Subject: [PATCH] TARGETARCH cannot have a default value, and set GOARCH similarly (#1014) --- 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