-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathDockerfile
32 lines (26 loc) · 1.71 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
27
28
29
30
31
32
ARG REPO=mcr.microsoft.com/dotnet/monitor/base
# Installer image
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
RUN tdnf install -y \
ca-certificates \
gzip \
tar \
&& tdnf clean all
# Retrieve .NET Monitor extensions
RUN dotnet_monitor_extension_version=9.0.1 \
&& curl -fSL --output dotnet-monitor-egress-azureblobstorage.tar.gz https://builds.dotnet.microsoft.com/dotnet/diagnostics/monitor/$dotnet_monitor_extension_version/dotnet-monitor-egress-azureblobstorage-$dotnet_monitor_extension_version-linux-x64.tar.gz \
&& dotnet_monitor_extension_sha512='982f2acab2b8018a5ff88ca87ad816ce7cdf4a080ca40da298ad87b2fa44cbb0c24f469a72b92e78f58bd4b2af666883db7da181094c9f12b39354ef6a9d6809' \
&& echo "$dotnet_monitor_extension_sha512 dotnet-monitor-egress-azureblobstorage.tar.gz" | sha512sum -c - \
\
&& curl -fSL --output dotnet-monitor-egress-s3storage.tar.gz https://builds.dotnet.microsoft.com/dotnet/diagnostics/monitor/$dotnet_monitor_extension_version/dotnet-monitor-egress-s3storage-$dotnet_monitor_extension_version-linux-x64.tar.gz \
&& dotnet_monitor_extension_sha512='d048d8828ddd8b7a9faca8ddb713cb252ad56f713be78465a51d2ede30135257df6bc7db9a5014809a960243807f91a9cd8eca4e20bdd5fd87aa53daecf2773a' \
&& echo "$dotnet_monitor_extension_sha512 dotnet-monitor-egress-s3storage.tar.gz" | sha512sum -c - \
\
&& mkdir -p /app \
&& tar -oxzf dotnet-monitor-egress-azureblobstorage.tar.gz -C /app \
&& rm dotnet-monitor-egress-azureblobstorage.tar.gz \
&& tar -oxzf dotnet-monitor-egress-s3storage.tar.gz -C /app \
&& rm dotnet-monitor-egress-s3storage.tar.gz
# .NET Monitor image
FROM $REPO:9.0.1-amd64
COPY --from=installer ["/app", "/app"]