refactor: 去掉 top 顶层目录,镜像与部署编排直接放在仓库根下
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
FROM registry.cn-shanghai.aliyuncs.com/odboy/kenaito:alinux3-update20261111
|
||||
LABEL MAINTAINER="tianjun@odboy.cn"
|
||||
ENV TimeZone=Asia/Shanghai
|
||||
ENV PYTHON_HOME=/usr/local/python3
|
||||
ENV PATH="${PYTHON_HOME}/bin:$PATH"
|
||||
WORKDIR /home/admin
|
||||
ADD https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz ./
|
||||
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; \
|
||||
tar -xvf Python-3.10.0.tgz; \
|
||||
cd Python-3.10.0; \
|
||||
./configure --prefix=/usr/local/python3; \
|
||||
make && make install; \
|
||||
python3 -V; \
|
||||
mkdir ~/.pip;
|
||||
COPY pip.conf ~/.pip/
|
||||
RUN yum install -y \
|
||||
epel-release \
|
||||
ansible;
|
||||
@@ -0,0 +1,3 @@
|
||||
IMAGE=registry.cn-shanghai.aliyuncs.com/odboy/kenaito:tools-ansible
|
||||
docker build -t "${IMAGE}" .
|
||||
docker push "${IMAGE}"
|
||||
@@ -0,0 +1,5 @@
|
||||
[global]
|
||||
index-url = https://mirrors.aliyun.com/pypi/simple
|
||||
|
||||
[install]
|
||||
trusted-host = mirrors.aliyun.com
|
||||
Reference in New Issue
Block a user