update
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
ARG ARCH
|
||||
FROM harbor.colben.cn/general/rocky$ARCH:8
|
||||
MAINTAINER Colben colbenlee@gmail.com
|
||||
RUN dnf makecache \
|
||||
&& dnf install gcc gcc-c++ make cmake python39-devel mysql-devel -y \
|
||||
&& rm -rf /var/cache/dnf /var/lib/dnf
|
||||
|
||||
7
rocky-python/Dockerfile-3.11
Normal file
7
rocky-python/Dockerfile-3.11
Normal file
@@ -0,0 +1,7 @@
|
||||
ARG ARCH
|
||||
FROM harbor.colben.cn/general/rocky$ARCH:8
|
||||
MAINTAINER Colben colbenlee@gmail.com
|
||||
RUN microdnf makecache \
|
||||
&& microdnf install gcc gcc-c++ make cmake python3.11-pip python3.11-devel mysql-devel \
|
||||
&& rm -rf /var/cache/yum /var/lib/dnf
|
||||
|
||||
7
rocky-python/Dockerfile-3.9
Normal file
7
rocky-python/Dockerfile-3.9
Normal file
@@ -0,0 +1,7 @@
|
||||
ARG ARCH
|
||||
FROM harbor.colben.cn/general/rocky$ARCH:8
|
||||
MAINTAINER Colben colbenlee@gmail.com
|
||||
RUN microdnf makecache \
|
||||
&& microdnf install gcc gcc-c++ make cmake python39-devel mysql-devel \
|
||||
&& rm -rf /var/cache/yum /var/lib/dnf
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# 构建 python 镜像
|
||||
|
||||
## 定制
|
||||
- 安装 python39 及其编译工具
|
||||
- 安装 python3 及其编译工具
|
||||
|
||||
|
||||
@@ -9,7 +9,8 @@ export LANG=en_US.UTF-8
|
||||
|
||||
[ 'x86_64' == "$(uname -m)" ] && ARCH='' || ARCH="-$(uname -m)"
|
||||
ROOT_DIR="$(cd $(dirname $0) && pwd)"
|
||||
IMAGE="harbor.colben.cn/general/$(basename ${0%.sh})$ARCH:latest"
|
||||
TAG=$1
|
||||
IMAGE="harbor.colben.cn/general/$(basename ${0%.sh})$ARCH:$TAG"
|
||||
|
||||
if [ -t 0 ]; then
|
||||
function Print { echo -e "\033[36;1m$(date +'[%F %T]')\033[32;1m $*\033[0m"; }
|
||||
@@ -51,7 +52,7 @@ function Build {
|
||||
&& Warn Removing image $IMAGE ... \
|
||||
&& docker rmi $IMAGE
|
||||
Warn Building image: $IMAGE ...
|
||||
docker build --force-rm --build-arg ARCH="$ARCH" -t $IMAGE .
|
||||
docker build --force-rm --build-arg ARCH="$ARCH" -t $IMAGE -f Dockerfile-$TAG .
|
||||
YesOrNo Push image: $IMAGE? && docker push $IMAGE
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user