17 lines
674 B
Docker
17 lines
674 B
Docker
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/runtime-aspnetcore-9.0.0-rc.2-linux-x64-binaries
|
||
# 由 build.sh 预先下载到本目录
|
||
ADD aspnetcore-runtime-9.0.0-rc.2.24474.3-linux-x64.tar.gz /usr/local/dotnet/
|
||
# sysstat/net-tools 用于排障
|
||
# libicu:.NET 全球化(CultureInfo/TimeZoneInfo)必需,缺了 dotnet 命令会直接 Abort
|
||
RUN set -e && yum install \
|
||
libicu \
|
||
sysstat \
|
||
net-tools -y; \
|
||
dotnet --info;
|