-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (28 loc) · 1.29 KB
/
Dockerfile
File metadata and controls
36 lines (28 loc) · 1.29 KB
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
36
ARG REPO=mcr.microsoft.com/dotnet/aspnet
# Installer image
FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer
RUN tdnf install -y \
ca-certificates \
unzip \
&& tdnf clean all
# Retrieve Aspire Dashboard
RUN dotnet_aspire_version=13.3.0-preview.1.26256.5 \
&& curl --fail --show-error --location --output aspire_dashboard.zip https://ci.dot.net/public/aspire/$dotnet_aspire_version/aspire-dashboard-linux-arm64.zip \
&& aspire_dashboard_sha512='e03dd6d54b9df414a70ffa16d962dddb4b83c516c8e8342ccf57aafb24c7c80fc3f0938ef98b2c1c7edbe221aa48cf66f302b719facffc62f2229356639667ac' \
&& echo "$aspire_dashboard_sha512 aspire_dashboard.zip" | sha512sum -c - \
&& mkdir --parents /app \
&& unzip aspire_dashboard.zip -d /app \
&& rm aspire_dashboard.zip
# Aspire Dashboard image
FROM $REPO:8.0.27-azurelinux3.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://+:18888 \
DOTNET_DASHBOARD_OTLP_ENDPOINT_URL=http://+:18889 \
DOTNET_DASHBOARD_OTLP_HTTP_ENDPOINT_URL=http://+:18890 \
DOTNET_DASHBOARD_MCP_ENDPOINT_URL=http://+:18891
ENTRYPOINT [ "dotnet", "/app/Aspire.Dashboard.dll" ]