Files

19 lines
710 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
FROM registry.cn-shanghai.aliyuncs.com/odboy/kenaito:system-alinux3
LABEL MAINTAINER="tianjun@odboy.cn"
ENV TimeZone=Asia/Shanghai
ENV DOTNET_HOME=/usr/local/dotnet
ENV PATH="${DOTNET_HOME}:$PATH"
WORKDIR /home/admin
# https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-6.0.427-linux-x64-binaries
# 由 build.sh 预先下载到本目录
ADD dotnet-sdk-6.0.427-linux-x64.tar.gz /usr/local/dotnet/
# gcc/make 用于编译含原生代码的 NuGet 包;sysstat/net-tools 用于排障
# libicu:.NET 全球化(CultureInfo/TimeZoneInfo)必需,缺了 dotnet 命令会直接 Abort
RUN set -e && yum install \
gcc \
make \
libicu \
sysstat \
net-tools -y; \
dotnet --info;