refactor: 去掉 top 顶层目录,镜像与部署编排直接放在仓库根下
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
FROM registry.cn-shanghai.aliyuncs.com/odboy/kenaito:alinux3-update20261111
|
||||
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
|
||||
ADD https://builds.dotnet.microsoft.com/dotnet/aspnetcore/Runtime/9.0.0-rc.2.24474.3/aspnetcore-runtime-9.0.0-rc.2.24474.3-linux-x64.tar.gz ./
|
||||
RUN yum install \
|
||||
libffi-devel \
|
||||
zlib-devel \
|
||||
bzip2-devel \
|
||||
openssl-devel \
|
||||
ncurses-devel \
|
||||
sqlite-devel \
|
||||
readline-devel \
|
||||
tk-devel \
|
||||
gdbm-devel \
|
||||
libpcap-devel \
|
||||
xz-devel \
|
||||
make \
|
||||
patch \
|
||||
gcc \
|
||||
tar \
|
||||
sysstat \
|
||||
net-tools -y; \
|
||||
mkdir /usr/local/dotnet; \
|
||||
tar -xzvf aspnetcore-runtime-9.0.0-rc.2.24474.3-linux-x64.tar.gz -C /usr/local/dotnet; \
|
||||
dotnet --info;
|
||||
@@ -0,0 +1,3 @@
|
||||
IMAGE=registry.cn-shanghai.aliyuncs.com/odboy/kenaito:runtime-dotnet9
|
||||
docker build -t "${IMAGE}" .
|
||||
docker push "${IMAGE}"
|
||||
Reference in New Issue
Block a user