-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Dockerfile
28 lines (25 loc) · 1 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
FROM mcr.microsoft.com/cbl-mariner/base/core:2.0
ENV \
# Configure web servers to bind to port 80 when present
ASPNETCORE_URLS=http://+:80 \
# Enable detection of running in a container
DOTNET_RUNNING_IN_CONTAINER=true
RUN tdnf install -y \
ca-certificates \
\
# .NET dependencies
glibc \
icu \
krb5 \
libgcc \
libstdc++ \
openssl-libs \
zlib \
&& tdnf clean all
# Install dotnet-runtime-deps package
RUN dotnet_version=6.0.35 \
&& curl -fSL --output dotnet-runtime-deps.rpm https://dotnetcli.azureedge.net/dotnet/Runtime/$dotnet_version/dotnet-runtime-deps-$dotnet_version-cm.2-aarch64.rpm \
&& dotnet_sha512='934b7d80f43c12e6036d08bab714a9d8f2fb2ac456f5dd90ca1d99b7987469751a6bcc4e07fc8da4b4e23ecf666609034672568fd15d6255c7d8e27422a44395' \
&& echo "$dotnet_sha512 dotnet-runtime-deps.rpm" | sha512sum -c - \
&& tdnf install -y --disablerepo=* dotnet-runtime-deps.rpm \
&& rm dotnet-runtime-deps.rpm