-
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=9.0.0-preview.5.24551.3 \
&& curl -fSL --output aspire_dashboard.zip https://dotnetbuilds.azureedge.net/public/aspire/$dotnet_aspire_version/aspire-dashboard-linux-x64.zip \
&& aspire_dashboard_sha512='bb59357983a0db57ec2a126d06db6f94338f0b26cb23d5565e34c69b167f25ffa6c99f2961e1b127d27bacfc78d2892cee19bad400e8c0e6b71a27a9035684f2' \
&& 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.11-cbl-mariner2.0-distroless-extra-amd64
WORKDIR /app
COPY --from=installer /app .
ENV \
# Unset ASPNETCORE_HTTP_PORTS from base image
ASPNETCORE_HTTP_PORTS= \
# Aspire Dashboard environment variables
ASPNETCORE_URLS=http://+:18888 \
DOTNET_DASHBOARD_OTLP_ENDPOINT_URL=http://+:18889 \
DOTNET_DASHBOARD_OTLP_HTTP_ENDPOINT_URL=http://+:18890
ENTRYPOINT [ "dotnet", "/app/Aspire.Dashboard.dll" ]