-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathDockerfile
26 lines (21 loc) · 1.62 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 arm64v8/buildpack-deps:jammy-curl AS installer
# Retrieve .NET Monitor extensions
RUN dotnet_monitor_extension_version=8.0.7 \
&& 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='d0bf4c2bf5959d4b7925a2246a332c59903de50d2f91ae0e80525d5a70d37ba5f59acda9971e6b80add3c8143c2b428b32e00c3002c7a851ee10ee1bfdb8d6ad' \
&& 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='42763e716154a054d338eb55c4a4f0dea801282e0f6a43d6de2a695448f4767e45b446797ca5a691c0ad48f77973285c2cc51aefe439e7ec791b8e2bfd73e724' \
&& 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.7-ubuntu-chiseled-arm64v8
COPY --from=installer ["/app", "/app"]