-
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.33 \
&& 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='f4b37f8ddf2ca5c3a799a8d54e5742e0512ee4ac3e05fcbb84e73b8a7a9f109ceaa8c88afc6db46d9c5f75834191c6db5aa5f3ba2c12225495830104a5894e89' \
&& echo "$dotnet_sha512 dotnet-runtime-deps.rpm" | sha512sum -c - \
&& tdnf install -y --disablerepo=* dotnet-runtime-deps.rpm \
&& rm dotnet-runtime-deps.rpm