-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Dockerfile
26 lines (21 loc) · 1.6 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.4 \
&& curl -fSL --output dotnet-monitor-egress-azureblobstorage.tar.gz https://dotnetcli.azureedge.net/dotnet/diagnostics/monitor/$dotnet_monitor_extension_version/dotnet-monitor-egress-azureblobstorage-$dotnet_monitor_extension_version-linux-x64.tar.gz \
&& dotnet_monitor_extension_sha512='0c5efb1f64372bc3b9a3076b19e4a143f8e6dfa86406a3130ae8d02120d3e2f437329c94ed5abedcf2158ebec7cfb049b3505d96c54184507680403d4fb66c78' \
&& echo "$dotnet_monitor_extension_sha512 dotnet-monitor-egress-azureblobstorage.tar.gz" | sha512sum -c - \
\
&& curl -fSL --output dotnet-monitor-egress-s3storage.tar.gz https://dotnetcli.azureedge.net/dotnet/diagnostics/monitor/$dotnet_monitor_extension_version/dotnet-monitor-egress-s3storage-$dotnet_monitor_extension_version-linux-x64.tar.gz \
&& dotnet_monitor_extension_sha512='e282162778e52a978a4c9a9859b321f1f99c930a1bdc6e7094dc47259fe70db5eb0ffb08bed2735d60608dc7349cc79005e35a5c4899f2a4d5632c68a8c914bd' \
&& 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.4-ubuntu-chiseled-amd64
COPY --from=installer ["/app", "/app"]