docker.io/hdgigante/python-opencv:4.10.0-alpine linux/amd64

docker.io/hdgigante/python-opencv:4.10.0-alpine - 国内下载镜像源 浏览次数:29
```html

这是一个包含Python和OpenCV库的Docker镜像。它提供了一个预配置的环境,方便用户运行使用OpenCV库的Python程序。

```
源镜像 docker.io/hdgigante/python-opencv:4.10.0-alpine
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hdgigante/python-opencv:4.10.0-alpine
镜像ID sha256:bde92c1f5d50fa2b26885d70db0efda6011f1c3d9be2265c245c50d4c6b237ae
镜像TAG 4.10.0-alpine
大小 391.56MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD python3
启动入口
工作目录 /opt/build
OS/平台 linux/amd64
浏览量 29 次
贡献者
镜像创建 2024-11-14T15:18:22.418192538Z
同步时间 2024-11-17 16:06
更新时间 2024-12-03 20:46
环境变量
PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305 PYTHON_VERSION=3.13.0 PYTHON_SHA256=086de5882e3cb310d4dca48457522e2e48018ecd43da9cdf827f6a0759efb07d
镜像安全扫描 查看Trivy扫描报告

系统OS: alpine 3.20.3 扫描引擎: Trivy 扫描时间: 2024-11-17 16:07

低危漏洞:2 中危漏洞:6 高危漏洞:0 严重漏洞:0

Docker拉取命令 无权限下载?点我修复

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hdgigante/python-opencv:4.10.0-alpine
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hdgigante/python-opencv:4.10.0-alpine  docker.io/hdgigante/python-opencv:4.10.0-alpine

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hdgigante/python-opencv:4.10.0-alpine
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hdgigante/python-opencv:4.10.0-alpine  docker.io/hdgigante/python-opencv:4.10.0-alpine

Shell快速替换命令

sed -i 's#hdgigante/python-opencv:4.10.0-alpine#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hdgigante/python-opencv:4.10.0-alpine#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hdgigante/python-opencv:4.10.0-alpine && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hdgigante/python-opencv:4.10.0-alpine  docker.io/hdgigante/python-opencv:4.10.0-alpine'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hdgigante/python-opencv:4.10.0-alpine && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hdgigante/python-opencv:4.10.0-alpine  docker.io/hdgigante/python-opencv:4.10.0-alpine'

镜像历史

大小 创建时间 层信息
341.27MB 2024-11-14 23:18:22 RUN |1 OPENCV_VERSION=4.10.0 /bin/sh -c set -ex && echo "@edge http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories && echo "@community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && echo "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && apk add -q --update --no-cache build-base cmake wget unzip hdf5 hdf5-dev protobuf protobuf-dev openblas openblas-dev@community libjpeg libjpeg-turbo-dev libpng libpng-dev tiff tiff-dev libwebp libwebp-dev openjpeg openjpeg-dev openjpeg-tools libtbb@testing libtbb-dev@testing eigen eigen-dev tesseract-ocr tesseract-ocr-data-por tesseract-ocr-dev py3-pip python3-dev linux-headers && pip install -q numpy && wget -q https://github.com/opencv/opencv/archive/${OPENCV_VERSION}.zip -O opencv.zip && wget -q https://github.com/opencv/opencv_contrib/archive/${OPENCV_VERSION}.zip -O opencv_contrib.zip && unzip -qq opencv.zip -d /opt && rm -rf opencv.zip && unzip -qq opencv_contrib.zip -d /opt && rm -rf opencv_contrib.zip && cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=/opt/opencv_contrib-${OPENCV_VERSION}/modules -D EIGEN_INCLUDE_PATH=/usr/include/eigen3 -D OPENCV_ENABLE_NONFREE=ON -D WITH_JPEG=ON -D WITH_PNG=ON -D WITH_TIFF=ON -D WITH_WEBP=ON -D WITH_JASPER=ON -D WITH_EIGEN=ON -D WITH_TBB=ON -D WITH_LAPACK=ON -D WITH_PROTOBUF=ON -D WITH_V4L=OFF -D WITH_GSTREAMER=OFF -D WITH_GTK=OFF -D WITH_QT=OFF -D WITH_CUDA=OFF -D WITH_VTK=OFF -D WITH_OPENEXR=OFF -D WITH_FFMPEG=OFF -D WITH_OPENCL=OFF -D WITH_OPENNI=OFF -D WITH_XINE=OFF -D WITH_GDAL=OFF -D WITH_IPP=OFF -D BUILD_OPENCV_PYTHON3=ON -D BUILD_OPENCV_PYTHON2=OFF -D BUILD_OPENCV_JAVA=OFF -D BUILD_TESTS=OFF -D BUILD_IPP_IW=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_EXAMPLES=OFF -D BUILD_ANDROID_EXAMPLES=OFF -D BUILD_DOCS=OFF -D BUILD_ITT=OFF -D INSTALL_PYTHON_EXAMPLES=OFF -D INSTALL_C_EXAMPLES=OFF -D INSTALL_TESTS=OFF -D PYTHON3_EXECUTABLE=/usr/local/bin/python -D PYTHON3_INCLUDE_DIR=/usr/local/include/python3.13/ -D PYTHON3_LIBRARY=/usr/local/lib/libpython3.so -D PYTHON_LIBRARY=/usr/local/lib/libpython3.so -D PYTHON3_PACKAGES_PATH=/usr/local/lib/python3.13/site-packages/ /opt/opencv-${OPENCV_VERSION} && make -j$(nproc) && make install && rm -rf /opt/build/* && rm -rf /opt/opencv-${OPENCV_VERSION} && rm -rf /opt/opencv_contrib-${OPENCV_VERSION} && apk del -q --no-cache build-base cmake hdf5-dev protobuf-dev openblas-dev libjpeg-turbo-dev libpng-dev tiff-dev libwebp-dev openjpeg-dev libtbb-dev eigen-dev tesseract-ocr-dev py3-numpy-dev python3-dev linux-headers # buildkit
0.00B 2024-11-14 22:53:42 WORKDIR /opt/build
0.00B 2024-11-14 22:53:42 ARG OPENCV_VERSION
0.00B 2024-10-19 07:23:40 CMD ["python3"]
36.00B 2024-10-19 07:23:40 RUN /bin/sh -c set -eux; for src in idle3 pip3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "$src" "/usr/local/bin/$dst"; done # buildkit
41.49MB 2024-10-19 07:23:40 RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps gnupg tar xz bluez-dev bzip2-dev dpkg-dev dpkg findutils gcc gdbm-dev libc-dev libffi-dev libnsl-dev libtirpc-dev linux-headers make ncurses-dev openssl-dev pax-utils readline-dev sqlite-dev tcl-dev tk tk-dev util-linux-dev xz-dev zlib-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc"; GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY"; gpg --batch --verify python.tar.xz.asc python.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME" python.tar.xz.asc; mkdir -p /usr/src/python; tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; rm python.tar.xz; cd /usr/src/python; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-option-checking=fatal --enable-shared --with-lto --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000"; LDFLAGS="${LDFLAGS:--Wl},--strip-all"; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:--Wl},-rpath='\$\$ORIGIN/../lib'" python ; make install; cd /; rm -rf /usr/src/python; find /usr/local -depth \( \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \) -exec rm -rf '{}' + ; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | xargs -rt apk add --no-network --virtual .python-rundeps ; apk del --no-network .build-deps; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 --version # buildkit
0.00B 2024-10-19 07:23:40 ENV PYTHON_SHA256=086de5882e3cb310d4dca48457522e2e48018ecd43da9cdf827f6a0759efb07d
0.00B 2024-10-19 07:23:40 ENV PYTHON_VERSION=3.13.0
0.00B 2024-10-19 07:23:40 ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305
999.45KB 2024-10-19 07:23:40 RUN /bin/sh -c set -eux; apk add --no-cache ca-certificates tzdata ; # buildkit
0.00B 2024-10-19 07:23:40 ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
0.00B 2024-09-06 20:05:36 CMD ["/bin/sh"]
7.80MB 2024-09-06 20:05:36 ADD alpine-minirootfs-3.20.3-x86_64.tar.gz / # buildkit

镜像信息

{
    "Id": "sha256:bde92c1f5d50fa2b26885d70db0efda6011f1c3d9be2265c245c50d4c6b237ae",
    "RepoTags": [
        "hdgigante/python-opencv:4.10.0-alpine",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hdgigante/python-opencv:4.10.0-alpine"
    ],
    "RepoDigests": [
        "hdgigante/python-opencv@sha256:d0a2b5cffdd58ba46dade3e91258351e0b0c09f11a0c21c34f249a0b10076ee2",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hdgigante/python-opencv@sha256:d0a2b5cffdd58ba46dade3e91258351e0b0c09f11a0c21c34f249a0b10076ee2"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-11-14T15:18:22.418192538Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305",
            "PYTHON_VERSION=3.13.0",
            "PYTHON_SHA256=086de5882e3cb310d4dca48457522e2e48018ecd43da9cdf827f6a0759efb07d"
        ],
        "Cmd": [
            "python3"
        ],
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/opt/build",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 391555770,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/37ca4f22260ebaa97e4df50c9dc2694f83afe5cb2d00fb1efab76472a1fe3412/diff:/var/lib/docker/overlay2/be1cb44a478869fa21e54320ec1885e20314ba4842867e02335883b3edd9a707/diff:/var/lib/docker/overlay2/9c997d9e0d187bd7b598462d7f61eecd6a94e8eb2d28559bc6a83b60d4520323/diff:/var/lib/docker/overlay2/0f8c2cd4a483731501add531c54aaa120ec78c51d68a5463ec3a23c4b7c33719/diff:/var/lib/docker/overlay2/23c5724f3a35122d45237c48d0eec74bfb90f129834f1ecb674937c0af9f9db3/diff",
            "MergedDir": "/var/lib/docker/overlay2/48cb2f78d6c3d59eb1616bffa66e6e9fc925a4b5931038595d86ed798c839aec/merged",
            "UpperDir": "/var/lib/docker/overlay2/48cb2f78d6c3d59eb1616bffa66e6e9fc925a4b5931038595d86ed798c839aec/diff",
            "WorkDir": "/var/lib/docker/overlay2/48cb2f78d6c3d59eb1616bffa66e6e9fc925a4b5931038595d86ed798c839aec/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:75654b8eeebd3beae97271a102f57cdeb794cc91e442648544963a7e951e9558",
            "sha256:45fae1a307dcc18d788a02c769772d94a4b3071ea53aa8120b0d93e1e0e213cf",
            "sha256:b2c8e72d9b6cff632851529f8869ad0431f96eca52e6a4a6272677b8f63f61f6",
            "sha256:51d8f5d0da052a4efb10f6847b7eacc30307658a8685d4a8fc9bfe286226afed",
            "sha256:9f752c1d92bb809ca6ebf03a5bd92d9ea27258dd7974c2f52a6df6aa66e9ffcb",
            "sha256:17001ae3223faaccf4f5db3f556efe8029fd15a5f171dcf506c2d9484de79298"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-11-17T16:05:44.517741007+08:00"
    }
}

更多版本

docker.io/hdgigante/python-opencv:4.10.0-ubuntu

linux/amd64 docker.io538.04MB2024-11-17 15:52
28

docker.io/hdgigante/python-opencv:4.10.0-alpine

linux/amd64 docker.io391.56MB2024-11-17 16:06
28

docker.io/hdgigante/python-opencv:4.10.0-debian

linux/amd64 docker.io501.92MB2024-11-17 16:24
26