-
Notifications
You must be signed in to change notification settings - Fork 2k
/
Copy pathDockerfile
32 lines (26 loc) · 1.73 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=8.1.0 \
&& 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-arm64.tar.gz \
&& dotnet_monitor_extension_sha512='77f2ba22b6e412020296b9d28b3dde20dba514902a584fbe8f6eef04cdd23a9fb3a56bea4808aec6be8cc86b02c6c7f2925102b201cd7413e99d370715e4fbba' \
&& 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-arm64.tar.gz \
&& dotnet_monitor_extension_sha512='5142d86c818aa9de4e84b71e7571bfd8bc61607bb8d5863413ef4a5e15eff88f0ef44e27464062bf31c4e7704c256ad272d8151b79392cfee93a265775966202' \
&& 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:8.1.0-azurelinux-distroless-arm64v8
COPY --from=installer ["/app", "/app"]