Skip to content

Commit

Permalink
use arg to pass dynamic version
Browse files Browse the repository at this point in the history
  • Loading branch information
eedygreen committed Nov 14, 2024
1 parent 241bcfd commit b36bb86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM golang:1.22.8-alpine3.20 AS sygma
#ARG OTEL_VERSION=1.30.0
ARG OTEL_VERSION=0.112.0
WORKDIR /app
COPY otelcol-builder.yaml .
RUN <<-EOF
apk update && apk add git
go install go.opentelemetry.io/collector/cmd/builder@v0.112.0
go install go.opentelemetry.io/collector/cmd/builder@v${OTEL_VERSION}
builder --config=otelcol-builder.yaml
EOF

Expand Down

0 comments on commit b36bb86

Please sign in to comment.