Skip to content

Commit 2a1bd44

Browse files
committed
share OTEL_VERSION properly over stages
1 parent c3578a8 commit 2a1bd44

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

examples/Example.AutoInstrumentation/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
FROM mcr.microsoft.com/dotnet/runtime:8.0 AS base
2-
ARG OTEL_VERSION=1.7.0
1+
ARG OTEL_VERSION=1.7.0
2+
FROM mcr.microsoft.com/dotnet/runtime:8.0 AS base
3+
ARG TARGETPLATFORM
34
ARG TARGETARCH
5+
ARG TARGETVARIANT
46
RUN apt-get update && apt-get install -y unzip curl strace
57
# Would love to run as non root but TestContainers does not utilize buildkit like `docker build` does OOTB
68
#USER $APP_UID
@@ -42,7 +44,9 @@ RUN mkdir -p /app/temp
4244
RUN cp -r /src/.artifacts/bin /app/temp
4345

4446
FROM otel AS final
47+
ARG TARGETPLATFORM
4548
ARG TARGETARCH
49+
ARG TARGETVARIANT
4650
WORKDIR /app
4751
COPY --from=publish_example /app/example /app/example
4852
COPY --from=otel /app/otel /app/otel

0 commit comments

Comments
 (0)