-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Dockerfile
26 lines (21 loc) · 1.59 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
ARG REPO=mcr.microsoft.com/dotnet/monitor/base
# Installer image
FROM amd64/buildpack-deps:jammy-curl AS installer
# Retrieve .NET Monitor extensions
RUN dotnet_monitor_extension_version=8.0.6 \
&& curl -fSL --output dotnet-monitor-egress-azureblobstorage.tar.gz https://dotnetbuilds.azureedge.net/public/diagnostics/monitor/8.0.6-servicing.24558.6/dotnet-monitor-egress-azureblobstorage-$dotnet_monitor_extension_version-linux-x64.tar.gz \
&& dotnet_monitor_extension_sha512='b09e1d17551d72cf2a79e673c5623a043950d578401d5a2a01c4174ea053d14d463d219715653575040802ee281ac9570ecc746da69f838009b4328285840a3e' \
&& echo "$dotnet_monitor_extension_sha512 dotnet-monitor-egress-azureblobstorage.tar.gz" | sha512sum -c - \
\
&& curl -fSL --output dotnet-monitor-egress-s3storage.tar.gz https://dotnetbuilds.azureedge.net/public/diagnostics/monitor/8.0.6-servicing.24558.6/dotnet-monitor-egress-s3storage-$dotnet_monitor_extension_version-linux-x64.tar.gz \
&& dotnet_monitor_extension_sha512='6b1da4cb485c9ae70e165784175a82c25ecf3e5721d369bb2120dcf6c15566e52f4068a2af511a9d87ec8beb179e9ca90bc3729311fd4c7a112aeb8f83287df7' \
&& 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.0.6-ubuntu-chiseled-amd64
COPY --from=installer ["/app", "/app"]