Files
kenaito-lab/image/runtime-dotnet6/Dockerfile
T

17 lines
658 B
Docker
Raw 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/runtime-aspnetcore-6.0.35-linux-x64-binaries
# 由 build.sh 预先下载到本目录
ADD aspnetcore-runtime-6.0.35-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;