-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Dockerfile
35 lines (27 loc) · 1.22 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
33
34
35
ARG REPO=mcr.microsoft.com/dotnet/aspnet
# Installer image
FROM mcr.microsoft.com/cbl-mariner/base/core:2.0 AS installer
RUN tdnf install -y \
ca-certificates \
unzip \
&& tdnf clean all
# Retrieve Aspire Dashboard
RUN dotnet_aspire_version=8.1.0 \
&& curl -fSL --output aspire_dashboard.zip https://dotnetbuilds.azureedge.net/public/aspire/$dotnet_aspire_version/aspire-dashboard-linux-arm64.zip \
&& aspire_dashboard_sha512='96e78fc6ab0da4fce82f01f725633820db36fd04fb1f20ab923afe68bb0f155e3d547b4102ad8f95cfbc0fb2d3d7b9103a68f439801aedac6a5973cb34272699' \
&& echo "$aspire_dashboard_sha512 aspire_dashboard.zip" | sha512sum -c - \
&& mkdir -p /app \
&& unzip aspire_dashboard.zip -d /app \
&& rm aspire_dashboard.zip
# Aspire Dashboard image
FROM $REPO:8.0.8-cbl-mariner2.0-distroless-extra-arm64v8
WORKDIR /app
COPY --from=installer /app .
ENV \
# Unset ASPNETCORE_HTTP_PORTS from base image
ASPNETCORE_HTTP_PORTS= \
# Aspire Dashboard environment variables
ASPNETCORE_URLS=http://0.0.0.0:18888 \
DOTNET_DASHBOARD_OTLP_ENDPOINT_URL=http://0.0.0.0:18889 \
DOTNET_DASHBOARD_OTLP_HTTP_ENDPOINT_URL=http://0.0.0.0:18890
ENTRYPOINT [ "dotnet", "/app/Aspire.Dashboard.dll" ]