-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Dockerfile
28 lines (25 loc) · 1022 Bytes
/
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-x64.rpm \
&& dotnet_sha512='85b639348fb53678eb5bbbea50ba2a9a36fe3fa0d34b80e20ce7d34835f58f737d8c17423f411484f1c71cd2072f08f7030aded6bca1edab4757abc710070273' \
&& echo "$dotnet_sha512 dotnet-runtime-deps.rpm" | sha512sum -c - \
&& tdnf install -y --disablerepo=* dotnet-runtime-deps.rpm \
&& rm dotnet-runtime-deps.rpm