-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
26 lines (20 loc) · 1.28 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Based on the opentelemetry dotnet operator image:
# https://github.com/open-telemetry/opentelemetry-operator/blob/main/autoinstrumentation/dotnet/Dockerfile
# To build locally you need to call:
# - ./build.sh redistribute
# This ensures the distribution is locally available under .artifacts/elastic-distribution
FROM busybox as downloader
WORKDIR /autoinstrumentation
COPY ".artifacts/elastic-distribution/elastic-dotnet-instrumentation-linux-glibc-arm64.zip" .
COPY ".artifacts/elastic-distribution/elastic-dotnet-instrumentation-linux-glibc-x64.zip" .
COPY ".artifacts/elastic-distribution/elastic-dotnet-instrumentation-linux-musl-arm64.zip" .
COPY ".artifacts/elastic-distribution/elastic-dotnet-instrumentation-linux-musl-x64.zip" .
RUN unzip elastic-dotnet-instrumentation-linux-glibc-x64.zip &&\
unzip elastic-dotnet-instrumentation-linux-glibc-arm64.zip "linux-arm64/*" -d .&&\
unzip elastic-dotnet-instrumentation-linux-musl-x64.zip "linux-musl-x64/*" -d . &&\
unzip elastic-dotnet-instrumentation-linux-musl-arm64.zip "linux-musl-arm64/*" -d . &&\
unzip elastic-dotnet-instrumentation-linux-glibc-arm64.zip "store/arm64/*" -d .&&\
rm elastic-dotnet-instrumentation-*.zip &&\
chmod -R go+r .
FROM busybox
COPY --from=downloader /autoinstrumentation /autoinstrumentation