Skip to content

Commit

Permalink
TARGETARCH cannot have a default value, and set GOARCH similarly (ope…
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonkers authored Jul 24, 2023
1 parent 585d5eb commit afd6e90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/otelcollector/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit afd6e90

Please sign in to comment.