Namespace
qdtoday
Image / Tag
qd:ja3-20230821
Content Digest
sha256:70c7ee95b25bf19b99e74bc798eeeb1b968cd6b8335a5ba27df84c584213566e
Details
Created

2023-08-20 14:17:24 UTC

Size

77.4 MB

Content Digest
Labels
  • maintainer
    a76yyyy <q981331502@163.com>
  • org.opencontainers.image.source
    https://github.com/qd-today/qd

Environment
CARGO_NET_GIT_FETCH_WITH_CLI

true

DDDDOCR_VERSION

master

ONNXRUNTIME_TAG

v1.13.1

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PORT

80

PYCURL_SSL_LIBRARY

openssl

TZ

CST-8


Layers

[#000] sha256:53875a713ff14c3b89284e31b43afe171ba043aa5c81393b446a8356177467a0 - 4.2% (3.25 MB)

[#001] sha256:3e6bfdfb9b23bb6e2faa389c9c64718e0e5e546a552ef0683a2d519a14d29da0 - 35.11% (27.2 MB)

[#002] sha256:766a7462a886dd61e01ce95426cc0642246cc6fd6556173a4156df2d313f59ae - 8.48% (6.56 MB)

[#003] sha256:69dacf9386226b4fd32e56752021e5c677c154bced8e838d92b611eadcf5643a - 0.0% (1.99 KB)

[#004] sha256:88c22817ed6f5e4b85b3d571b7c18f00159e54e9acdb65cb113edbc37e018f1c - 0.0% (632 Bytes)

[#005] sha256:738a4b9a8e049088f95e9df481c48e8788d3e525f35b3b21ea9b935f693eb412 - 0.0% (126 Bytes)

[#006] sha256:02011a516a433618a89f1c75a682afdaa1b58491f837afb7dc803309d018b775 - 52.21% (40.4 MB)


History
2022-11-10 20:38:32 UTC

/bin/sh -c #(nop) ADD file:d87251a8a46cb3eb62f9fc8f8298f300c52dea8064e974b23dbc5382b4118a4b in /

2022-11-10 20:38:33 UTC

/bin/sh -c #(nop) CMD ["/bin/sh"]

2022-12-14 15:32:15 UTC (buildkit.dockerfile.v0)

LABEL maintainer=a76yyyy <q981331502@163.com>

2022-12-14 15:32:15 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.source=https://github.com/qiandao-today/ddddocr-docker

2022-12-14 15:32:15 UTC (buildkit.dockerfile.v0)

ENV ONNXRUNTIME_TAG=v1.13.1

2022-12-14 15:32:15 UTC (buildkit.dockerfile.v0)

ENV DDDDOCR_VERSION=master

2022-12-14 15:32:15 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && echo 'http://mirrors.ustc.edu.cn/alpine/v3.16/main' >> /etc/apk/repositories && echo 'http://mirrors.ustc.edu.cn/alpine/v3.16/community' >> /etc/apk/repositories && apk update && apk add --update --no-cache bash git tzdata ca-certificates file python3 py3-six && [[ $(getconf LONG_BIT) = "32" ]] && { bashtmp='' && cxxtmp=''; } || { [[ -z $(file /bin/busybox | grep -i "arm") ]] && { bashtmp='/onnxruntime/build.sh' && cxxtmp=''; } || { bashtmp='setarch arm64 /onnxruntime/build.sh' && cxxtmp='-Wno-psabi'; }; } && echo $bashtmp && echo $cxxtmp && { [[ -n "$bashtmp" ]] && { apk add --update --no-cache py3-opencv py3-pillow && { apk add --update --no-cache --virtual .build_deps nano openssh-client cmake make perl autoconf g++=11.2.1_git20220219-r2 libexecinfo-dev=1.1-r1 automake linux-headers libtool util-linux openblas-dev python3-dev protobuf-dev date-dev gtest-dev eigen-dev flatbuffers-dev=2.0.0-r1 patch boost-dev nlohmann-json py3-pybind11-dev py3-pip py3-setuptools py3-wheel py3-numpy-dev || apk add --update --no-cache --virtual .build_deps nano openssh-client cmake make perl autoconf g++=11.2.1_git20220219-r2 libexecinfo-dev=1.1-r1 automake linux-headers libtool util-linux openblas-dev python3-dev protobuf-dev date-dev gtest-dev eigen-dev patch boost-dev nlohmann-json py3-pybind11-dev py3-pip py3-setuptools py3-wheel py3-numpy-dev ;} && git clone --depth 1 --branch $ONNXRUNTIME_TAG https://github.com/Microsoft/onnxruntime && cd /onnxruntime && git submodule update --init --recursive && cd .. && $bashtmp --config MinSizeRel --parallel --build_wheel --enable_pybind --cmake_extra_defines CMAKE_CXX_FLAGS="-Wno-deprecated-copy -Wno-unused-variable -Wno-unused-parameter $cxxtmp" onnxruntime_BUILD_UNIT_TESTS=OFF onnxruntime_BUILD_SHARED_LIB=OFF onnxruntime_USE_PREINSTALLED_EIGEN=ON onnxruntime_PREFER_SYSTEM_LIB=ON eigen_SOURCE_PATH=/usr/include/eigen3 --skip_tests && apk add --update --no-cache libprotobuf-lite && pip install --no-cache-dir /onnxruntime/build/Linux/MinSizeRel/dist/onnxruntime*.whl && ln -s $(python -c 'import warnings;warnings.filterwarnings("ignore"); from distutils.sysconfig import get_python_lib;print(get_python_lib())')/onnxruntime/capi/libonnxruntime_providers_shared.so /usr/lib && cd / && rm -rf /onnxruntime && git clone --branch $DDDDOCR_VERSION https://github.com/sml2h3/ddddocr.git && cd ddddocr && sed -i '/install_package_data/d' setup.py && sed -i '/install_requires/d' setup.py && python setup.py install && cd / && rm -rf /ddddocr && apk del .build_deps ;} || { apk add --update --no-cache libprotobuf-lite && echo "Onnxruntime Builder does not currently support building i386 and arm32 wheels";} ;} && rm -rf /var/cache/apk/* && rm -rf /usr/share/man/* # buildkit

2022-12-24 16:02:47 UTC (buildkit.dockerfile.v0)

LABEL maintainer=a76yyyy <q981331502@163.com>

2022-12-24 16:02:47 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.source=https://github.com/qiandao-today/pycurl-docker

2022-12-24 16:02:47 UTC (buildkit.dockerfile.v0)

ARG CURL_VERSION=7.84.0

2022-12-24 16:02:47 UTC (buildkit.dockerfile.v0)

ENV PYCURL_SSL_LIBRARY=openssl

2022-12-24 16:02:47 UTC (buildkit.dockerfile.v0)

ENV CARGO_NET_GIT_FETCH_WITH_CLI=true

2022-12-24 16:02:47 UTC (buildkit.dockerfile.v0)

RUN |1 CURL_VERSION=7.84.0 /bin/sh -c apk update && apk add --update --no-cache bash git tzdata ca-certificates python3 py3-six && apk add --update --no-cache --virtual .build_deps nano openssh-client patch cargo cmake make perl autoconf g++ automake linux-headers libtool util-linux file libidn2-dev libgsasl-dev krb5-dev zstd-dev nghttp2-dev zlib-dev python3-dev c-ares-dev go brotli-dev py3-pip py3-setuptools py3-wheel && wget https://curl.haxx.se/download/curl-$CURL_VERSION.tar.bz2 && tar xjf curl-$CURL_VERSION.tar.bz2 && rm curl-$CURL_VERSION.tar.bz2 && git clone --recursive https://github.com/cloudflare/quiche && cd /quiche && git submodule update --init && cd /quiche/quiche/deps/boringssl && mkdir build && cd build && [[ $(getconf LONG_BIT) = "32" && -z $(file /bin/busybox | grep -i "arm") ]] && configtmp="cmake -DCMAKE_OSX_ARCHITECTURES=i386 -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-msse2 -DCMAKE_C_FLAGS=-m32 -DCMAKE_C_FLAGS=-msse2 -DCMAKE_ASM_FLAGS=-m32 -DCMAKE_ASM_FLAGS=-msse2" || configtmp="cmake " && $configtmp -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=on .. && make -j`nproc` && cd /quiche/quiche && mkdir deps/boringssl/src/lib && ln -vnf $(find -name libcrypto.a -o -name libssl.a) deps/boringssl/src/lib/ && git config http.postBuffer 524288000 && git config http.sslVerify "false" && cargo build --verbose --package quiche --release --features ffi,pkg-config-meta,qlog && cd /curl-$CURL_VERSION && wget https://cdn.jsdelivr.net/gh/lwthiker/curl-impersonate@main/chrome/patches/curl-impersonate.patch && wget https://cdn.jsdelivr.net/gh/curl/curl@master/lib/easy_lock.h -O lib/easy_lock.h && for p in $(ls curl-*.patch); do patch -p1 < $p; done && autoreconf -fi && LDFLAGS="-Wl,-rpath,/usr/lib,-rpath,$PWD/../quiche/target/release" ./configure --with-openssl=$PWD/../quiche/quiche/deps/boringssl/src --with-nghttp2=/usr --without-ngtcp2 --with-brotli --prefix=/usr --enable-ipv6 --enable-unix-sockets --with-libidn2 --disable-static --disable-ldap --with-pic --with-gssapi --enable-ares USE_CURL_SSLKEYLOGFILE=true && make -j$(($(grep -c ^processor /proc/cpuinfo) - 0)) && make install && cd / && ln -fs /usr/bin/curl-impersonate-chrome /usr/bin/curl && ln -fs /usr/bin/curl-impersonate-chrome-config /usr/bin/curl-config && git clone https://github.com/a76yyyy/pycurl-ja3.git && cd pycurl-ja3 && python3 setup.py install --openssl-dir=$PWD/../quiche/quiche/deps/boringssl/src && cd / && apk del .build_deps && apk add --update --no-cache libidn2 libgsasl zstd-libs zlib c-ares && rm -rf /curl-$CURL_VERSION && rm -rf /quiche && rm -rf ~/.cargo && rm -rf /pycurl-ja3 && rm -rf /var/cache/apk/* && rm -rf /usr/share/man/* # buildkit

2023-08-20 14:13:05 UTC (buildkit.dockerfile.v0)

LABEL maintainer=a76yyyy <q981331502@163.com>

2023-08-20 14:13:05 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.source=https://github.com/qd-today/qd

2023-08-20 14:13:05 UTC (buildkit.dockerfile.v0)

ADD ssh/qd_fetch /root/.ssh/id_rsa # buildkit

2023-08-20 14:13:05 UTC (buildkit.dockerfile.v0)

ADD ssh/qd_fetch.pub /root/.ssh/id_rsa.pub # buildkit

2023-08-20 14:13:05 UTC (buildkit.dockerfile.v0)

WORKDIR /usr/src/app

2023-08-20 14:17:24 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c sed -i 's/mirrors.ustc.edu.cn/dl-cdn.alpinelinux.org/g' /etc/apk/repositories && apk update && apk add --update --no-cache openssh-client && chmod 600 /root/.ssh/id_rsa && ssh-keyscan gitee.com > /root/.ssh/known_hosts && let num=$RANDOM%100+10 && sleep $num && git clone --depth 1 git@gitee.com:qd-today/qd.git /gitclone_tmp && yes | cp -rf /gitclone_tmp/. /usr/src/app && rm -rf /gitclone_tmp && chmod +x /usr/src/app/update.sh && ln -s /usr/src/app/update.sh /bin/update && apk add --update --no-cache python3 py3-six py3-markupsafe py3-pycryptodome py3-tornado py3-wrapt py3-packaging py3-greenlet py3-urllib3 py3-cryptography py3-aiosignal py3-async-timeout py3-attrs py3-frozenlist py3-multidict py3-charset-normalizer py3-aiohttp py3-typing-extensions py3-yarl && [[ $(getconf LONG_BIT) = "32" ]] && echo "Tips: 32-bit systems do not support ddddocr, so there is no need to install numpy and opencv-python" || apk add --update --no-cache py3-opencv py3-pillow && apk add --no-cache --virtual .build_deps cmake make perl autoconf g++ automake linux-headers libtool util-linux py3-pip py3-setuptools py3-wheel python3-dev py3-numpy-dev && sed -i '/ddddocr/d' requirements.txt && sed -i '/packaging/d' requirements.txt && sed -i '/wrapt/d' requirements.txt && sed -i '/pycryptodome/d' requirements.txt && sed -i '/tornado/d' requirements.txt && sed -i '/MarkupSafe/d' requirements.txt && sed -i '/pillow/d' requirements.txt && sed -i '/opencv/d' requirements.txt && sed -i '/numpy/d' requirements.txt && sed -i '/greenlet/d' requirements.txt && sed -i '/urllib3/d' requirements.txt && sed -i '/cryptography/d' requirements.txt && sed -i '/aiosignal/d' requirements.txt && sed -i '/async-timeout/d' requirements.txt && sed -i '/attrs/d' requirements.txt && sed -i '/frozenlist/d' requirements.txt && sed -i '/multidict/d' requirements.txt && sed -i '/charset-normalizer/d' requirements.txt && sed -i '/aiohttp/d' requirements.txt && sed -i '/typing-extensions/d' requirements.txt && sed -i '/yarl/d' requirements.txt && pip install --no-cache-dir -r requirements.txt --break-system-packages && apk del .build_deps && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && rm -rf /var/cache/apk/* && rm -rf /usr/share/man/* # buildkit

2023-08-20 14:17:24 UTC (buildkit.dockerfile.v0)

ENV PORT=80

2023-08-20 14:17:24 UTC (buildkit.dockerfile.v0)

EXPOSE map[80/tcp:{}]

2023-08-20 14:17:24 UTC (buildkit.dockerfile.v0)

ENV TZ=CST-8

2023-08-20 14:17:24 UTC (buildkit.dockerfile.v0)

VOLUME [/usr/src/app/config]

2023-08-20 14:17:24 UTC (buildkit.dockerfile.v0)

CMD ["sh" "-c" "python /usr/src/app/run.py"]

Details
Created

2023-08-20 14:16:02 UTC

Size

302 MB

Content Digest
Labels
  • maintainer
    a76yyyy <q981331502@163.com>
  • org.opencontainers.image.source
    https://github.com/qd-today/qd

Environment
CARGO_NET_GIT_FETCH_WITH_CLI

true

DDDDOCR_VERSION

master

ONNXRUNTIME_TAG

v1.13.1

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PORT

80

PYCURL_SSL_LIBRARY

openssl

TZ

CST-8


Layers

[#000] sha256:a71ff8a5264a4f5af191d4e972fba88ee793627dc6652810172dc02b5d3e7273 - 1.07% (3.21 MB)

[#001] sha256:6f0c0f2f4d6e2fb7e35e095e290392e72ac756e304d1932d52a163dca054e96d - 81.46% (246 MB)

[#002] sha256:c5903804a0268b5706a38df20f0848d6078e41d9ff642304c869936b0f380e5c - 1.87% (5.64 MB)

[#003] sha256:8a2a76dc27a5048debfe23ca682a8210906cfe2a52f97ba0f697ae3bb4143b42 - 0.0% (1.99 KB)

[#004] sha256:cb46cc753a4e5c4434a08acbbc957503ec49de31e795185bb3034eed4158015f - 0.0% (632 Bytes)

[#005] sha256:ffb733118140fd907d42bfa4e8c142a384b0c950616e19a0059a0a7be6e7eed1 - 0.0% (126 Bytes)

[#006] sha256:59b6d4e5345d50667fd712f8fb923a1be18eda028def705a0358e6e574d4bf54 - 15.61% (47.1 MB)


History
2022-11-10 20:19:28 UTC

/bin/sh -c #(nop) ADD file:51c4407dc777648e8ebc8e124b05feb1807699ade513b6006a9a409f6b0f6f51 in /

2022-11-10 20:19:29 UTC

/bin/sh -c #(nop) CMD ["/bin/sh"]

2022-12-14 16:25:04 UTC (buildkit.dockerfile.v0)

LABEL maintainer=a76yyyy <q981331502@163.com>

2022-12-14 16:25:04 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.source=https://github.com/qiandao-today/ddddocr-docker

2022-12-14 16:25:04 UTC (buildkit.dockerfile.v0)

ENV ONNXRUNTIME_TAG=v1.13.1

2022-12-14 16:25:04 UTC (buildkit.dockerfile.v0)

ENV DDDDOCR_VERSION=master

2022-12-14 16:25:04 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && echo 'http://mirrors.ustc.edu.cn/alpine/v3.16/main' >> /etc/apk/repositories && echo 'http://mirrors.ustc.edu.cn/alpine/v3.16/community' >> /etc/apk/repositories && apk update && apk add --update --no-cache bash git tzdata ca-certificates file python3 py3-six && [[ $(getconf LONG_BIT) = "32" ]] && { bashtmp='' && cxxtmp=''; } || { [[ -z $(file /bin/busybox | grep -i "arm") ]] && { bashtmp='/onnxruntime/build.sh' && cxxtmp=''; } || { bashtmp='setarch arm64 /onnxruntime/build.sh' && cxxtmp='-Wno-psabi'; }; } && echo $bashtmp && echo $cxxtmp && { [[ -n "$bashtmp" ]] && { apk add --update --no-cache py3-opencv py3-pillow && { apk add --update --no-cache --virtual .build_deps nano openssh-client cmake make perl autoconf g++=11.2.1_git20220219-r2 libexecinfo-dev=1.1-r1 automake linux-headers libtool util-linux openblas-dev python3-dev protobuf-dev date-dev gtest-dev eigen-dev flatbuffers-dev=2.0.0-r1 patch boost-dev nlohmann-json py3-pybind11-dev py3-pip py3-setuptools py3-wheel py3-numpy-dev || apk add --update --no-cache --virtual .build_deps nano openssh-client cmake make perl autoconf g++=11.2.1_git20220219-r2 libexecinfo-dev=1.1-r1 automake linux-headers libtool util-linux openblas-dev python3-dev protobuf-dev date-dev gtest-dev eigen-dev patch boost-dev nlohmann-json py3-pybind11-dev py3-pip py3-setuptools py3-wheel py3-numpy-dev ;} && git clone --depth 1 --branch $ONNXRUNTIME_TAG https://github.com/Microsoft/onnxruntime && cd /onnxruntime && git submodule update --init --recursive && cd .. && $bashtmp --config MinSizeRel --parallel --build_wheel --enable_pybind --cmake_extra_defines CMAKE_CXX_FLAGS="-Wno-deprecated-copy -Wno-unused-variable -Wno-unused-parameter $cxxtmp" onnxruntime_BUILD_UNIT_TESTS=OFF onnxruntime_BUILD_SHARED_LIB=OFF onnxruntime_USE_PREINSTALLED_EIGEN=ON onnxruntime_PREFER_SYSTEM_LIB=ON eigen_SOURCE_PATH=/usr/include/eigen3 --skip_tests && apk add --update --no-cache libprotobuf-lite && pip install --no-cache-dir /onnxruntime/build/Linux/MinSizeRel/dist/onnxruntime*.whl && ln -s $(python -c 'import warnings;warnings.filterwarnings("ignore"); from distutils.sysconfig import get_python_lib;print(get_python_lib())')/onnxruntime/capi/libonnxruntime_providers_shared.so /usr/lib && cd / && rm -rf /onnxruntime && git clone --branch $DDDDOCR_VERSION https://github.com/sml2h3/ddddocr.git && cd ddddocr && sed -i '/install_package_data/d' setup.py && sed -i '/install_requires/d' setup.py && python setup.py install && cd / && rm -rf /ddddocr && apk del .build_deps ;} || { apk add --update --no-cache libprotobuf-lite && echo "Onnxruntime Builder does not currently support building i386 and arm32 wheels";} ;} && rm -rf /var/cache/apk/* && rm -rf /usr/share/man/* # buildkit

2022-12-24 16:01:41 UTC (buildkit.dockerfile.v0)

LABEL maintainer=a76yyyy <q981331502@163.com>

2022-12-24 16:01:41 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.source=https://github.com/qiandao-today/pycurl-docker

2022-12-24 16:01:41 UTC (buildkit.dockerfile.v0)

ARG CURL_VERSION=7.84.0

2022-12-24 16:01:41 UTC (buildkit.dockerfile.v0)

ENV PYCURL_SSL_LIBRARY=openssl

2022-12-24 16:01:41 UTC (buildkit.dockerfile.v0)

ENV CARGO_NET_GIT_FETCH_WITH_CLI=true

2022-12-24 16:01:41 UTC (buildkit.dockerfile.v0)

RUN |1 CURL_VERSION=7.84.0 /bin/sh -c apk update && apk add --update --no-cache bash git tzdata ca-certificates python3 py3-six && apk add --update --no-cache --virtual .build_deps nano openssh-client patch cargo cmake make perl autoconf g++ automake linux-headers libtool util-linux file libidn2-dev libgsasl-dev krb5-dev zstd-dev nghttp2-dev zlib-dev python3-dev c-ares-dev go brotli-dev py3-pip py3-setuptools py3-wheel && wget https://curl.haxx.se/download/curl-$CURL_VERSION.tar.bz2 && tar xjf curl-$CURL_VERSION.tar.bz2 && rm curl-$CURL_VERSION.tar.bz2 && git clone --recursive https://github.com/cloudflare/quiche && cd /quiche && git submodule update --init && cd /quiche/quiche/deps/boringssl && mkdir build && cd build && [[ $(getconf LONG_BIT) = "32" && -z $(file /bin/busybox | grep -i "arm") ]] && configtmp="cmake -DCMAKE_OSX_ARCHITECTURES=i386 -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-msse2 -DCMAKE_C_FLAGS=-m32 -DCMAKE_C_FLAGS=-msse2 -DCMAKE_ASM_FLAGS=-m32 -DCMAKE_ASM_FLAGS=-msse2" || configtmp="cmake " && $configtmp -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=on .. && make -j`nproc` && cd /quiche/quiche && mkdir deps/boringssl/src/lib && ln -vnf $(find -name libcrypto.a -o -name libssl.a) deps/boringssl/src/lib/ && git config http.postBuffer 524288000 && git config http.sslVerify "false" && cargo build --verbose --package quiche --release --features ffi,pkg-config-meta,qlog && cd /curl-$CURL_VERSION && wget https://cdn.jsdelivr.net/gh/lwthiker/curl-impersonate@main/chrome/patches/curl-impersonate.patch && wget https://cdn.jsdelivr.net/gh/curl/curl@master/lib/easy_lock.h -O lib/easy_lock.h && for p in $(ls curl-*.patch); do patch -p1 < $p; done && autoreconf -fi && LDFLAGS="-Wl,-rpath,/usr/lib,-rpath,$PWD/../quiche/target/release" ./configure --with-openssl=$PWD/../quiche/quiche/deps/boringssl/src --with-nghttp2=/usr --without-ngtcp2 --with-brotli --prefix=/usr --enable-ipv6 --enable-unix-sockets --with-libidn2 --disable-static --disable-ldap --with-pic --with-gssapi --enable-ares USE_CURL_SSLKEYLOGFILE=true && make -j$(($(grep -c ^processor /proc/cpuinfo) - 0)) && make install && cd / && ln -fs /usr/bin/curl-impersonate-chrome /usr/bin/curl && ln -fs /usr/bin/curl-impersonate-chrome-config /usr/bin/curl-config && git clone https://github.com/a76yyyy/pycurl-ja3.git && cd pycurl-ja3 && python3 setup.py install --openssl-dir=$PWD/../quiche/quiche/deps/boringssl/src && cd / && apk del .build_deps && apk add --update --no-cache libidn2 libgsasl zstd-libs zlib c-ares && rm -rf /curl-$CURL_VERSION && rm -rf /quiche && rm -rf ~/.cargo && rm -rf /pycurl-ja3 && rm -rf /var/cache/apk/* && rm -rf /usr/share/man/* # buildkit

2023-08-20 14:13:22 UTC (buildkit.dockerfile.v0)

LABEL maintainer=a76yyyy <q981331502@163.com>

2023-08-20 14:13:22 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.source=https://github.com/qd-today/qd

2023-08-20 14:13:22 UTC (buildkit.dockerfile.v0)

ADD ssh/qd_fetch /root/.ssh/id_rsa # buildkit

2023-08-20 14:13:22 UTC (buildkit.dockerfile.v0)

ADD ssh/qd_fetch.pub /root/.ssh/id_rsa.pub # buildkit

2023-08-20 14:13:22 UTC (buildkit.dockerfile.v0)

WORKDIR /usr/src/app

2023-08-20 14:16:02 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c sed -i 's/mirrors.ustc.edu.cn/dl-cdn.alpinelinux.org/g' /etc/apk/repositories && apk update && apk add --update --no-cache openssh-client && chmod 600 /root/.ssh/id_rsa && ssh-keyscan gitee.com > /root/.ssh/known_hosts && let num=$RANDOM%100+10 && sleep $num && git clone --depth 1 git@gitee.com:qd-today/qd.git /gitclone_tmp && yes | cp -rf /gitclone_tmp/. /usr/src/app && rm -rf /gitclone_tmp && chmod +x /usr/src/app/update.sh && ln -s /usr/src/app/update.sh /bin/update && apk add --update --no-cache python3 py3-six py3-markupsafe py3-pycryptodome py3-tornado py3-wrapt py3-packaging py3-greenlet py3-urllib3 py3-cryptography py3-aiosignal py3-async-timeout py3-attrs py3-frozenlist py3-multidict py3-charset-normalizer py3-aiohttp py3-typing-extensions py3-yarl && [[ $(getconf LONG_BIT) = "32" ]] && echo "Tips: 32-bit systems do not support ddddocr, so there is no need to install numpy and opencv-python" || apk add --update --no-cache py3-opencv py3-pillow && apk add --no-cache --virtual .build_deps cmake make perl autoconf g++ automake linux-headers libtool util-linux py3-pip py3-setuptools py3-wheel python3-dev py3-numpy-dev && sed -i '/ddddocr/d' requirements.txt && sed -i '/packaging/d' requirements.txt && sed -i '/wrapt/d' requirements.txt && sed -i '/pycryptodome/d' requirements.txt && sed -i '/tornado/d' requirements.txt && sed -i '/MarkupSafe/d' requirements.txt && sed -i '/pillow/d' requirements.txt && sed -i '/opencv/d' requirements.txt && sed -i '/numpy/d' requirements.txt && sed -i '/greenlet/d' requirements.txt && sed -i '/urllib3/d' requirements.txt && sed -i '/cryptography/d' requirements.txt && sed -i '/aiosignal/d' requirements.txt && sed -i '/async-timeout/d' requirements.txt && sed -i '/attrs/d' requirements.txt && sed -i '/frozenlist/d' requirements.txt && sed -i '/multidict/d' requirements.txt && sed -i '/charset-normalizer/d' requirements.txt && sed -i '/aiohttp/d' requirements.txt && sed -i '/typing-extensions/d' requirements.txt && sed -i '/yarl/d' requirements.txt && pip install --no-cache-dir -r requirements.txt --break-system-packages && apk del .build_deps && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && rm -rf /var/cache/apk/* && rm -rf /usr/share/man/* # buildkit

2023-08-20 14:16:02 UTC (buildkit.dockerfile.v0)

ENV PORT=80

2023-08-20 14:16:02 UTC (buildkit.dockerfile.v0)

EXPOSE map[80/tcp:{}]

2023-08-20 14:16:02 UTC (buildkit.dockerfile.v0)

ENV TZ=CST-8

2023-08-20 14:16:02 UTC (buildkit.dockerfile.v0)

VOLUME [/usr/src/app/config]

2023-08-20 14:16:02 UTC (buildkit.dockerfile.v0)

CMD ["sh" "-c" "python /usr/src/app/run.py"]

Details
Created

2023-08-20 14:18:57 UTC

Size

74.8 MB

Content Digest
Labels
  • maintainer
    a76yyyy <q981331502@163.com>
  • org.opencontainers.image.source
    https://github.com/qd-today/qd

Environment
CARGO_NET_GIT_FETCH_WITH_CLI

true

DDDDOCR_VERSION

master

ONNXRUNTIME_TAG

v1.13.1

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PORT

80

PYCURL_SSL_LIBRARY

openssl

TZ

CST-8


Layers

[#000] sha256:d53aea6592a3f6648a31d7051dddc95afdc3502e41b061450ecc016496dfada4 - 3.96% (2.96 MB)

[#001] sha256:63ce74d5d5017e82980e30c3703f1a395dd7a0a6ad8138dbe60b9c1b98ec602e - 34.84% (26.1 MB)

[#002] sha256:2917613eb760bbb8a13241ae3109101c7335bebe86e1022021b0d8353e6865ec - 7.82% (5.85 MB)

[#003] sha256:69dacf9386226b4fd32e56752021e5c677c154bced8e838d92b611eadcf5643a - 0.0% (1.99 KB)

[#004] sha256:88c22817ed6f5e4b85b3d571b7c18f00159e54e9acdb65cb113edbc37e018f1c - 0.0% (632 Bytes)

[#005] sha256:738a4b9a8e049088f95e9df481c48e8788d3e525f35b3b21ea9b935f693eb412 - 0.0% (126 Bytes)

[#006] sha256:bbfe152c4d829d502de964ecae84e249f29643193765e64dae4618cb27bfd245 - 53.37% (39.9 MB)


History
2022-11-10 20:49:20 UTC

/bin/sh -c #(nop) ADD file:f6755def1a186eeef059a1690d117ae5732b1a54504e4fe186b8ecf5ccf63ff2 in /

2022-11-10 20:49:21 UTC

/bin/sh -c #(nop) CMD ["/bin/sh"]

2022-12-14 15:32:23 UTC (buildkit.dockerfile.v0)

LABEL maintainer=a76yyyy <q981331502@163.com>

2022-12-14 15:32:23 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.source=https://github.com/qiandao-today/ddddocr-docker

2022-12-14 15:32:23 UTC (buildkit.dockerfile.v0)

ENV ONNXRUNTIME_TAG=v1.13.1

2022-12-14 15:32:23 UTC (buildkit.dockerfile.v0)

ENV DDDDOCR_VERSION=master

2022-12-14 15:32:23 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && echo 'http://mirrors.ustc.edu.cn/alpine/v3.16/main' >> /etc/apk/repositories && echo 'http://mirrors.ustc.edu.cn/alpine/v3.16/community' >> /etc/apk/repositories && apk update && apk add --update --no-cache bash git tzdata ca-certificates file python3 py3-six && [[ $(getconf LONG_BIT) = "32" ]] && { bashtmp='' && cxxtmp=''; } || { [[ -z $(file /bin/busybox | grep -i "arm") ]] && { bashtmp='/onnxruntime/build.sh' && cxxtmp=''; } || { bashtmp='setarch arm64 /onnxruntime/build.sh' && cxxtmp='-Wno-psabi'; }; } && echo $bashtmp && echo $cxxtmp && { [[ -n "$bashtmp" ]] && { apk add --update --no-cache py3-opencv py3-pillow && { apk add --update --no-cache --virtual .build_deps nano openssh-client cmake make perl autoconf g++=11.2.1_git20220219-r2 libexecinfo-dev=1.1-r1 automake linux-headers libtool util-linux openblas-dev python3-dev protobuf-dev date-dev gtest-dev eigen-dev flatbuffers-dev=2.0.0-r1 patch boost-dev nlohmann-json py3-pybind11-dev py3-pip py3-setuptools py3-wheel py3-numpy-dev || apk add --update --no-cache --virtual .build_deps nano openssh-client cmake make perl autoconf g++=11.2.1_git20220219-r2 libexecinfo-dev=1.1-r1 automake linux-headers libtool util-linux openblas-dev python3-dev protobuf-dev date-dev gtest-dev eigen-dev patch boost-dev nlohmann-json py3-pybind11-dev py3-pip py3-setuptools py3-wheel py3-numpy-dev ;} && git clone --depth 1 --branch $ONNXRUNTIME_TAG https://github.com/Microsoft/onnxruntime && cd /onnxruntime && git submodule update --init --recursive && cd .. && $bashtmp --config MinSizeRel --parallel --build_wheel --enable_pybind --cmake_extra_defines CMAKE_CXX_FLAGS="-Wno-deprecated-copy -Wno-unused-variable -Wno-unused-parameter $cxxtmp" onnxruntime_BUILD_UNIT_TESTS=OFF onnxruntime_BUILD_SHARED_LIB=OFF onnxruntime_USE_PREINSTALLED_EIGEN=ON onnxruntime_PREFER_SYSTEM_LIB=ON eigen_SOURCE_PATH=/usr/include/eigen3 --skip_tests && apk add --update --no-cache libprotobuf-lite && pip install --no-cache-dir /onnxruntime/build/Linux/MinSizeRel/dist/onnxruntime*.whl && ln -s $(python -c 'import warnings;warnings.filterwarnings("ignore"); from distutils.sysconfig import get_python_lib;print(get_python_lib())')/onnxruntime/capi/libonnxruntime_providers_shared.so /usr/lib && cd / && rm -rf /onnxruntime && git clone --branch $DDDDOCR_VERSION https://github.com/sml2h3/ddddocr.git && cd ddddocr && sed -i '/install_package_data/d' setup.py && sed -i '/install_requires/d' setup.py && python setup.py install && cd / && rm -rf /ddddocr && apk del .build_deps ;} || { apk add --update --no-cache libprotobuf-lite && echo "Onnxruntime Builder does not currently support building i386 and arm32 wheels";} ;} && rm -rf /var/cache/apk/* && rm -rf /usr/share/man/* # buildkit

2022-12-24 18:09:49 UTC (buildkit.dockerfile.v0)

LABEL maintainer=a76yyyy <q981331502@163.com>

2022-12-24 18:09:49 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.source=https://github.com/qiandao-today/pycurl-docker

2022-12-24 18:09:49 UTC (buildkit.dockerfile.v0)

ARG CURL_VERSION=7.84.0

2022-12-24 18:09:49 UTC (buildkit.dockerfile.v0)

ENV PYCURL_SSL_LIBRARY=openssl

2022-12-24 18:09:49 UTC (buildkit.dockerfile.v0)

ENV CARGO_NET_GIT_FETCH_WITH_CLI=true

2022-12-24 18:09:49 UTC (buildkit.dockerfile.v0)

RUN |1 CURL_VERSION=7.84.0 /bin/sh -c apk update && apk add --update --no-cache bash git tzdata ca-certificates python3 py3-six && apk add --update --no-cache --virtual .build_deps nano openssh-client patch cargo cmake make perl autoconf g++ automake linux-headers libtool util-linux file libidn2-dev libgsasl-dev krb5-dev zstd-dev nghttp2-dev zlib-dev python3-dev c-ares-dev go brotli-dev py3-pip py3-setuptools py3-wheel && wget https://curl.haxx.se/download/curl-$CURL_VERSION.tar.bz2 && tar xjf curl-$CURL_VERSION.tar.bz2 && rm curl-$CURL_VERSION.tar.bz2 && git clone --recursive https://github.com/cloudflare/quiche && cd /quiche && git submodule update --init && cd /quiche/quiche/deps/boringssl && mkdir build && cd build && [[ $(getconf LONG_BIT) = "32" && -z $(file /bin/busybox | grep -i "arm") ]] && configtmp="cmake -DCMAKE_OSX_ARCHITECTURES=i386 -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-msse2 -DCMAKE_C_FLAGS=-m32 -DCMAKE_C_FLAGS=-msse2 -DCMAKE_ASM_FLAGS=-m32 -DCMAKE_ASM_FLAGS=-msse2" || configtmp="cmake " && $configtmp -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=on .. && make -j`nproc` && cd /quiche/quiche && mkdir deps/boringssl/src/lib && ln -vnf $(find -name libcrypto.a -o -name libssl.a) deps/boringssl/src/lib/ && git config http.postBuffer 524288000 && git config http.sslVerify "false" && cargo build --verbose --package quiche --release --features ffi,pkg-config-meta,qlog && cd /curl-$CURL_VERSION && wget https://cdn.jsdelivr.net/gh/lwthiker/curl-impersonate@main/chrome/patches/curl-impersonate.patch && wget https://cdn.jsdelivr.net/gh/curl/curl@master/lib/easy_lock.h -O lib/easy_lock.h && for p in $(ls curl-*.patch); do patch -p1 < $p; done && autoreconf -fi && LDFLAGS="-Wl,-rpath,/usr/lib,-rpath,$PWD/../quiche/target/release" ./configure --with-openssl=$PWD/../quiche/quiche/deps/boringssl/src --with-nghttp2=/usr --without-ngtcp2 --with-brotli --prefix=/usr --enable-ipv6 --enable-unix-sockets --with-libidn2 --disable-static --disable-ldap --with-pic --with-gssapi --enable-ares USE_CURL_SSLKEYLOGFILE=true && make -j$(($(grep -c ^processor /proc/cpuinfo) - 0)) && make install && cd / && ln -fs /usr/bin/curl-impersonate-chrome /usr/bin/curl && ln -fs /usr/bin/curl-impersonate-chrome-config /usr/bin/curl-config && git clone https://github.com/a76yyyy/pycurl-ja3.git && cd pycurl-ja3 && python3 setup.py install --openssl-dir=$PWD/../quiche/quiche/deps/boringssl/src && cd / && apk del .build_deps && apk add --update --no-cache libidn2 libgsasl zstd-libs zlib c-ares && rm -rf /curl-$CURL_VERSION && rm -rf /quiche && rm -rf ~/.cargo && rm -rf /pycurl-ja3 && rm -rf /var/cache/apk/* && rm -rf /usr/share/man/* # buildkit

2023-08-20 14:13:05 UTC (buildkit.dockerfile.v0)

LABEL maintainer=a76yyyy <q981331502@163.com>

2023-08-20 14:13:05 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.source=https://github.com/qd-today/qd

2023-08-20 14:13:05 UTC (buildkit.dockerfile.v0)

ADD ssh/qd_fetch /root/.ssh/id_rsa # buildkit

2023-08-20 14:13:05 UTC (buildkit.dockerfile.v0)

ADD ssh/qd_fetch.pub /root/.ssh/id_rsa.pub # buildkit

2023-08-20 14:13:05 UTC (buildkit.dockerfile.v0)

WORKDIR /usr/src/app

2023-08-20 14:18:57 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c sed -i 's/mirrors.ustc.edu.cn/dl-cdn.alpinelinux.org/g' /etc/apk/repositories && apk update && apk add --update --no-cache openssh-client && chmod 600 /root/.ssh/id_rsa && ssh-keyscan gitee.com > /root/.ssh/known_hosts && let num=$RANDOM%100+10 && sleep $num && git clone --depth 1 git@gitee.com:qd-today/qd.git /gitclone_tmp && yes | cp -rf /gitclone_tmp/. /usr/src/app && rm -rf /gitclone_tmp && chmod +x /usr/src/app/update.sh && ln -s /usr/src/app/update.sh /bin/update && apk add --update --no-cache python3 py3-six py3-markupsafe py3-pycryptodome py3-tornado py3-wrapt py3-packaging py3-greenlet py3-urllib3 py3-cryptography py3-aiosignal py3-async-timeout py3-attrs py3-frozenlist py3-multidict py3-charset-normalizer py3-aiohttp py3-typing-extensions py3-yarl && [[ $(getconf LONG_BIT) = "32" ]] && echo "Tips: 32-bit systems do not support ddddocr, so there is no need to install numpy and opencv-python" || apk add --update --no-cache py3-opencv py3-pillow && apk add --no-cache --virtual .build_deps cmake make perl autoconf g++ automake linux-headers libtool util-linux py3-pip py3-setuptools py3-wheel python3-dev py3-numpy-dev && sed -i '/ddddocr/d' requirements.txt && sed -i '/packaging/d' requirements.txt && sed -i '/wrapt/d' requirements.txt && sed -i '/pycryptodome/d' requirements.txt && sed -i '/tornado/d' requirements.txt && sed -i '/MarkupSafe/d' requirements.txt && sed -i '/pillow/d' requirements.txt && sed -i '/opencv/d' requirements.txt && sed -i '/numpy/d' requirements.txt && sed -i '/greenlet/d' requirements.txt && sed -i '/urllib3/d' requirements.txt && sed -i '/cryptography/d' requirements.txt && sed -i '/aiosignal/d' requirements.txt && sed -i '/async-timeout/d' requirements.txt && sed -i '/attrs/d' requirements.txt && sed -i '/frozenlist/d' requirements.txt && sed -i '/multidict/d' requirements.txt && sed -i '/charset-normalizer/d' requirements.txt && sed -i '/aiohttp/d' requirements.txt && sed -i '/typing-extensions/d' requirements.txt && sed -i '/yarl/d' requirements.txt && pip install --no-cache-dir -r requirements.txt --break-system-packages && apk del .build_deps && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && rm -rf /var/cache/apk/* && rm -rf /usr/share/man/* # buildkit

2023-08-20 14:18:57 UTC (buildkit.dockerfile.v0)

ENV PORT=80

2023-08-20 14:18:57 UTC (buildkit.dockerfile.v0)

EXPOSE map[80/tcp:{}]

2023-08-20 14:18:57 UTC (buildkit.dockerfile.v0)

ENV TZ=CST-8

2023-08-20 14:18:57 UTC (buildkit.dockerfile.v0)

VOLUME [/usr/src/app/config]

2023-08-20 14:18:57 UTC (buildkit.dockerfile.v0)

CMD ["sh" "-c" "python /usr/src/app/run.py"]

Details
Created

2023-08-20 14:19:26 UTC

Size

72.7 MB

Content Digest
Labels
  • maintainer
    a76yyyy <q981331502@163.com>
  • org.opencontainers.image.source
    https://github.com/qd-today/qd

Environment
CARGO_NET_GIT_FETCH_WITH_CLI

true

DDDDOCR_VERSION

master

ONNXRUNTIME_TAG

v1.13.1

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PORT

80

PYCURL_SSL_LIBRARY

openssl

TZ

CST-8


Layers

[#000] sha256:810dd31423a9c6d0cf1afdb5e2d49569a7b57e8cc22f7061198b0acedab346ca - 3.76% (2.73 MB)

[#001] sha256:a23cfe1b4fe6e7768dd8260d5bb53a01b7ab6257f6d0e49af28aa67efa83aa4a - 34.77% (25.3 MB)

[#002] sha256:599f39c8df701e5e47c5d49a62324501eb73ba32e8e25fd2121345e83e27edfc - 7.53% (5.47 MB)

[#003] sha256:7115892b3a678943ba5470fcc268acd15b99f320e9cc4f702d0eb67fcfdd8143 - 0.0% (1.99 KB)

[#004] sha256:42772542ff204e72b96add34041c0ac408f4ed014a4881b723d2bcd32e58d23f - 0.0% (633 Bytes)

[#005] sha256:738a4b9a8e049088f95e9df481c48e8788d3e525f35b3b21ea9b935f693eb412 - 0.0% (126 Bytes)

[#006] sha256:60ef16d49142342b3f4decbcbe00eaf51ecf30200c445953d4da9c1b9d321d48 - 53.94% (39.2 MB)


History
2022-11-10 19:57:22 UTC

/bin/sh -c #(nop) ADD file:eb72bb8afda085f5e36b9f439e4a84dbd23c6b921f15f7ffb3c4e767b3b703bf in /

2022-11-10 19:57:22 UTC

/bin/sh -c #(nop) CMD ["/bin/sh"]

2022-12-14 15:32:28 UTC (buildkit.dockerfile.v0)

LABEL maintainer=a76yyyy <q981331502@163.com>

2022-12-14 15:32:28 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.source=https://github.com/qiandao-today/ddddocr-docker

2022-12-14 15:32:28 UTC (buildkit.dockerfile.v0)

ENV ONNXRUNTIME_TAG=v1.13.1

2022-12-14 15:32:28 UTC (buildkit.dockerfile.v0)

ENV DDDDOCR_VERSION=master

2022-12-14 15:32:28 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && echo 'http://mirrors.ustc.edu.cn/alpine/v3.16/main' >> /etc/apk/repositories && echo 'http://mirrors.ustc.edu.cn/alpine/v3.16/community' >> /etc/apk/repositories && apk update && apk add --update --no-cache bash git tzdata ca-certificates file python3 py3-six && [[ $(getconf LONG_BIT) = "32" ]] && { bashtmp='' && cxxtmp=''; } || { [[ -z $(file /bin/busybox | grep -i "arm") ]] && { bashtmp='/onnxruntime/build.sh' && cxxtmp=''; } || { bashtmp='setarch arm64 /onnxruntime/build.sh' && cxxtmp='-Wno-psabi'; }; } && echo $bashtmp && echo $cxxtmp && { [[ -n "$bashtmp" ]] && { apk add --update --no-cache py3-opencv py3-pillow && { apk add --update --no-cache --virtual .build_deps nano openssh-client cmake make perl autoconf g++=11.2.1_git20220219-r2 libexecinfo-dev=1.1-r1 automake linux-headers libtool util-linux openblas-dev python3-dev protobuf-dev date-dev gtest-dev eigen-dev flatbuffers-dev=2.0.0-r1 patch boost-dev nlohmann-json py3-pybind11-dev py3-pip py3-setuptools py3-wheel py3-numpy-dev || apk add --update --no-cache --virtual .build_deps nano openssh-client cmake make perl autoconf g++=11.2.1_git20220219-r2 libexecinfo-dev=1.1-r1 automake linux-headers libtool util-linux openblas-dev python3-dev protobuf-dev date-dev gtest-dev eigen-dev patch boost-dev nlohmann-json py3-pybind11-dev py3-pip py3-setuptools py3-wheel py3-numpy-dev ;} && git clone --depth 1 --branch $ONNXRUNTIME_TAG https://github.com/Microsoft/onnxruntime && cd /onnxruntime && git submodule update --init --recursive && cd .. && $bashtmp --config MinSizeRel --parallel --build_wheel --enable_pybind --cmake_extra_defines CMAKE_CXX_FLAGS="-Wno-deprecated-copy -Wno-unused-variable -Wno-unused-parameter $cxxtmp" onnxruntime_BUILD_UNIT_TESTS=OFF onnxruntime_BUILD_SHARED_LIB=OFF onnxruntime_USE_PREINSTALLED_EIGEN=ON onnxruntime_PREFER_SYSTEM_LIB=ON eigen_SOURCE_PATH=/usr/include/eigen3 --skip_tests && apk add --update --no-cache libprotobuf-lite && pip install --no-cache-dir /onnxruntime/build/Linux/MinSizeRel/dist/onnxruntime*.whl && ln -s $(python -c 'import warnings;warnings.filterwarnings("ignore"); from distutils.sysconfig import get_python_lib;print(get_python_lib())')/onnxruntime/capi/libonnxruntime_providers_shared.so /usr/lib && cd / && rm -rf /onnxruntime && git clone --branch $DDDDOCR_VERSION https://github.com/sml2h3/ddddocr.git && cd ddddocr && sed -i '/install_package_data/d' setup.py && sed -i '/install_requires/d' setup.py && python setup.py install && cd / && rm -rf /ddddocr && apk del .build_deps ;} || { apk add --update --no-cache libprotobuf-lite && echo "Onnxruntime Builder does not currently support building i386 and arm32 wheels";} ;} && rm -rf /var/cache/apk/* && rm -rf /usr/share/man/* # buildkit

2022-12-24 18:10:54 UTC (buildkit.dockerfile.v0)

LABEL maintainer=a76yyyy <q981331502@163.com>

2022-12-24 18:10:54 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.source=https://github.com/qiandao-today/pycurl-docker

2022-12-24 18:10:54 UTC (buildkit.dockerfile.v0)

ARG CURL_VERSION=7.84.0

2022-12-24 18:10:54 UTC (buildkit.dockerfile.v0)

ENV PYCURL_SSL_LIBRARY=openssl

2022-12-24 18:10:54 UTC (buildkit.dockerfile.v0)

ENV CARGO_NET_GIT_FETCH_WITH_CLI=true

2022-12-24 18:10:54 UTC (buildkit.dockerfile.v0)

RUN |1 CURL_VERSION=7.84.0 /bin/sh -c apk update && apk add --update --no-cache bash git tzdata ca-certificates python3 py3-six && apk add --update --no-cache --virtual .build_deps nano openssh-client patch cargo cmake make perl autoconf g++ automake linux-headers libtool util-linux file libidn2-dev libgsasl-dev krb5-dev zstd-dev nghttp2-dev zlib-dev python3-dev c-ares-dev go brotli-dev py3-pip py3-setuptools py3-wheel && wget https://curl.haxx.se/download/curl-$CURL_VERSION.tar.bz2 && tar xjf curl-$CURL_VERSION.tar.bz2 && rm curl-$CURL_VERSION.tar.bz2 && git clone --recursive https://github.com/cloudflare/quiche && cd /quiche && git submodule update --init && cd /quiche/quiche/deps/boringssl && mkdir build && cd build && [[ $(getconf LONG_BIT) = "32" && -z $(file /bin/busybox | grep -i "arm") ]] && configtmp="cmake -DCMAKE_OSX_ARCHITECTURES=i386 -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-msse2 -DCMAKE_C_FLAGS=-m32 -DCMAKE_C_FLAGS=-msse2 -DCMAKE_ASM_FLAGS=-m32 -DCMAKE_ASM_FLAGS=-msse2" || configtmp="cmake " && $configtmp -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=on .. && make -j`nproc` && cd /quiche/quiche && mkdir deps/boringssl/src/lib && ln -vnf $(find -name libcrypto.a -o -name libssl.a) deps/boringssl/src/lib/ && git config http.postBuffer 524288000 && git config http.sslVerify "false" && cargo build --verbose --package quiche --release --features ffi,pkg-config-meta,qlog && cd /curl-$CURL_VERSION && wget https://cdn.jsdelivr.net/gh/lwthiker/curl-impersonate@main/chrome/patches/curl-impersonate.patch && wget https://cdn.jsdelivr.net/gh/curl/curl@master/lib/easy_lock.h -O lib/easy_lock.h && for p in $(ls curl-*.patch); do patch -p1 < $p; done && autoreconf -fi && LDFLAGS="-Wl,-rpath,/usr/lib,-rpath,$PWD/../quiche/target/release" ./configure --with-openssl=$PWD/../quiche/quiche/deps/boringssl/src --with-nghttp2=/usr --without-ngtcp2 --with-brotli --prefix=/usr --enable-ipv6 --enable-unix-sockets --with-libidn2 --disable-static --disable-ldap --with-pic --with-gssapi --enable-ares USE_CURL_SSLKEYLOGFILE=true && make -j$(($(grep -c ^processor /proc/cpuinfo) - 0)) && make install && cd / && ln -fs /usr/bin/curl-impersonate-chrome /usr/bin/curl && ln -fs /usr/bin/curl-impersonate-chrome-config /usr/bin/curl-config && git clone https://github.com/a76yyyy/pycurl-ja3.git && cd pycurl-ja3 && python3 setup.py install --openssl-dir=$PWD/../quiche/quiche/deps/boringssl/src && cd / && apk del .build_deps && apk add --update --no-cache libidn2 libgsasl zstd-libs zlib c-ares && rm -rf /curl-$CURL_VERSION && rm -rf /quiche && rm -rf ~/.cargo && rm -rf /pycurl-ja3 && rm -rf /var/cache/apk/* && rm -rf /usr/share/man/* # buildkit

2023-08-20 14:13:04 UTC (buildkit.dockerfile.v0)

LABEL maintainer=a76yyyy <q981331502@163.com>

2023-08-20 14:13:04 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.source=https://github.com/qd-today/qd

2023-08-20 14:13:04 UTC (buildkit.dockerfile.v0)

ADD ssh/qd_fetch /root/.ssh/id_rsa # buildkit

2023-08-20 14:13:05 UTC (buildkit.dockerfile.v0)

ADD ssh/qd_fetch.pub /root/.ssh/id_rsa.pub # buildkit

2023-08-20 14:13:05 UTC (buildkit.dockerfile.v0)

WORKDIR /usr/src/app

2023-08-20 14:19:26 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c sed -i 's/mirrors.ustc.edu.cn/dl-cdn.alpinelinux.org/g' /etc/apk/repositories && apk update && apk add --update --no-cache openssh-client && chmod 600 /root/.ssh/id_rsa && ssh-keyscan gitee.com > /root/.ssh/known_hosts && let num=$RANDOM%100+10 && sleep $num && git clone --depth 1 git@gitee.com:qd-today/qd.git /gitclone_tmp && yes | cp -rf /gitclone_tmp/. /usr/src/app && rm -rf /gitclone_tmp && chmod +x /usr/src/app/update.sh && ln -s /usr/src/app/update.sh /bin/update && apk add --update --no-cache python3 py3-six py3-markupsafe py3-pycryptodome py3-tornado py3-wrapt py3-packaging py3-greenlet py3-urllib3 py3-cryptography py3-aiosignal py3-async-timeout py3-attrs py3-frozenlist py3-multidict py3-charset-normalizer py3-aiohttp py3-typing-extensions py3-yarl && [[ $(getconf LONG_BIT) = "32" ]] && echo "Tips: 32-bit systems do not support ddddocr, so there is no need to install numpy and opencv-python" || apk add --update --no-cache py3-opencv py3-pillow && apk add --no-cache --virtual .build_deps cmake make perl autoconf g++ automake linux-headers libtool util-linux py3-pip py3-setuptools py3-wheel python3-dev py3-numpy-dev && sed -i '/ddddocr/d' requirements.txt && sed -i '/packaging/d' requirements.txt && sed -i '/wrapt/d' requirements.txt && sed -i '/pycryptodome/d' requirements.txt && sed -i '/tornado/d' requirements.txt && sed -i '/MarkupSafe/d' requirements.txt && sed -i '/pillow/d' requirements.txt && sed -i '/opencv/d' requirements.txt && sed -i '/numpy/d' requirements.txt && sed -i '/greenlet/d' requirements.txt && sed -i '/urllib3/d' requirements.txt && sed -i '/cryptography/d' requirements.txt && sed -i '/aiosignal/d' requirements.txt && sed -i '/async-timeout/d' requirements.txt && sed -i '/attrs/d' requirements.txt && sed -i '/frozenlist/d' requirements.txt && sed -i '/multidict/d' requirements.txt && sed -i '/charset-normalizer/d' requirements.txt && sed -i '/aiohttp/d' requirements.txt && sed -i '/typing-extensions/d' requirements.txt && sed -i '/yarl/d' requirements.txt && pip install --no-cache-dir -r requirements.txt --break-system-packages && apk del .build_deps && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && rm -rf /var/cache/apk/* && rm -rf /usr/share/man/* # buildkit

2023-08-20 14:19:26 UTC (buildkit.dockerfile.v0)

ENV PORT=80

2023-08-20 14:19:26 UTC (buildkit.dockerfile.v0)

EXPOSE map[80/tcp:{}]

2023-08-20 14:19:26 UTC (buildkit.dockerfile.v0)

ENV TZ=CST-8

2023-08-20 14:19:26 UTC (buildkit.dockerfile.v0)

VOLUME [/usr/src/app/config]

2023-08-20 14:19:26 UTC (buildkit.dockerfile.v0)

CMD ["sh" "-c" "python /usr/src/app/run.py"]

Details
Created

2023-08-20 14:19:28 UTC

Size

287 MB

Content Digest
Labels
  • maintainer
    a76yyyy <q981331502@163.com>
  • org.opencontainers.image.source
    https://github.com/qd-today/qd

Environment
CARGO_NET_GIT_FETCH_WITH_CLI

true

DDDDOCR_VERSION

master

ONNXRUNTIME_TAG

v1.13.1

PATH

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

PORT

80

PYCURL_SSL_LIBRARY

openssl

TZ

CST-8


Layers

[#000] sha256:b1101342f8ad0db5a405801c0e1b426345830a8f54d4fab3446e7edeeb6d7d65 - 1.08% (3.11 MB)

[#001] sha256:3f9ddb4384b527b6ef4851e64e962a21f211204946a5f758d51d4506186a31d9 - 81.13% (233 MB)

[#002] sha256:aea25f8f4a929b97a5b4164b25e852e9805a6431a07f341fb308008cfd98b3e4 - 1.78% (5.11 MB)

[#003] sha256:914c43c5f3340e8f9c4cfadb50335e7a740b06461cf562d8bcc0740e6f7bfbec - 0.0% (1.99 KB)

[#004] sha256:791ce11d92260f042f5c5e82c91c6e77463b5ef967e3b9f5c977d1feb28cffee - 0.0% (629 Bytes)

[#005] sha256:ffb733118140fd907d42bfa4e8c142a384b0c950616e19a0059a0a7be6e7eed1 - 0.0% (126 Bytes)

[#006] sha256:4be60cf5450ee132b2b54d05e3d3ead5de49e2da38675bdccbdec8e9ac98c0b8 - 16.01% (46 MB)


History
2022-11-10 20:39:35 UTC

/bin/sh -c #(nop) ADD file:edb23a0d9b2d09d24b7153f3bb7021b584b69abe1d8b068983ec1cdf12b7e1b5 in /

2022-11-10 20:39:35 UTC

/bin/sh -c #(nop) CMD ["/bin/sh"]

2022-12-14 20:26:31 UTC (buildkit.dockerfile.v0)

LABEL maintainer=a76yyyy <q981331502@163.com>

2022-12-14 20:26:31 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.source=https://github.com/qiandao-today/ddddocr-docker

2022-12-14 20:26:31 UTC (buildkit.dockerfile.v0)

ENV ONNXRUNTIME_TAG=v1.13.1

2022-12-14 20:26:31 UTC (buildkit.dockerfile.v0)

ENV DDDDOCR_VERSION=master

2022-12-14 20:26:31 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && echo 'http://mirrors.ustc.edu.cn/alpine/v3.16/main' >> /etc/apk/repositories && echo 'http://mirrors.ustc.edu.cn/alpine/v3.16/community' >> /etc/apk/repositories && apk update && apk add --update --no-cache bash git tzdata ca-certificates file python3 py3-six && [[ $(getconf LONG_BIT) = "32" ]] && { bashtmp='' && cxxtmp=''; } || { [[ -z $(file /bin/busybox | grep -i "arm") ]] && { bashtmp='/onnxruntime/build.sh' && cxxtmp=''; } || { bashtmp='setarch arm64 /onnxruntime/build.sh' && cxxtmp='-Wno-psabi'; }; } && echo $bashtmp && echo $cxxtmp && { [[ -n "$bashtmp" ]] && { apk add --update --no-cache py3-opencv py3-pillow && { apk add --update --no-cache --virtual .build_deps nano openssh-client cmake make perl autoconf g++=11.2.1_git20220219-r2 libexecinfo-dev=1.1-r1 automake linux-headers libtool util-linux openblas-dev python3-dev protobuf-dev date-dev gtest-dev eigen-dev flatbuffers-dev=2.0.0-r1 patch boost-dev nlohmann-json py3-pybind11-dev py3-pip py3-setuptools py3-wheel py3-numpy-dev || apk add --update --no-cache --virtual .build_deps nano openssh-client cmake make perl autoconf g++=11.2.1_git20220219-r2 libexecinfo-dev=1.1-r1 automake linux-headers libtool util-linux openblas-dev python3-dev protobuf-dev date-dev gtest-dev eigen-dev patch boost-dev nlohmann-json py3-pybind11-dev py3-pip py3-setuptools py3-wheel py3-numpy-dev ;} && git clone --depth 1 --branch $ONNXRUNTIME_TAG https://github.com/Microsoft/onnxruntime && cd /onnxruntime && git submodule update --init --recursive && cd .. && $bashtmp --config MinSizeRel --parallel --build_wheel --enable_pybind --cmake_extra_defines CMAKE_CXX_FLAGS="-Wno-deprecated-copy -Wno-unused-variable -Wno-unused-parameter $cxxtmp" onnxruntime_BUILD_UNIT_TESTS=OFF onnxruntime_BUILD_SHARED_LIB=OFF onnxruntime_USE_PREINSTALLED_EIGEN=ON onnxruntime_PREFER_SYSTEM_LIB=ON eigen_SOURCE_PATH=/usr/include/eigen3 --skip_tests && apk add --update --no-cache libprotobuf-lite && pip install --no-cache-dir /onnxruntime/build/Linux/MinSizeRel/dist/onnxruntime*.whl && ln -s $(python -c 'import warnings;warnings.filterwarnings("ignore"); from distutils.sysconfig import get_python_lib;print(get_python_lib())')/onnxruntime/capi/libonnxruntime_providers_shared.so /usr/lib && cd / && rm -rf /onnxruntime && git clone --branch $DDDDOCR_VERSION https://github.com/sml2h3/ddddocr.git && cd ddddocr && sed -i '/install_package_data/d' setup.py && sed -i '/install_requires/d' setup.py && python setup.py install && cd / && rm -rf /ddddocr && apk del .build_deps ;} || { apk add --update --no-cache libprotobuf-lite && echo "Onnxruntime Builder does not currently support building i386 and arm32 wheels";} ;} && rm -rf /var/cache/apk/* && rm -rf /usr/share/man/* # buildkit

2022-12-24 18:12:49 UTC (buildkit.dockerfile.v0)

LABEL maintainer=a76yyyy <q981331502@163.com>

2022-12-24 18:12:49 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.source=https://github.com/qiandao-today/pycurl-docker

2022-12-24 18:12:49 UTC (buildkit.dockerfile.v0)

ARG CURL_VERSION=7.84.0

2022-12-24 18:12:49 UTC (buildkit.dockerfile.v0)

ENV PYCURL_SSL_LIBRARY=openssl

2022-12-24 18:12:49 UTC (buildkit.dockerfile.v0)

ENV CARGO_NET_GIT_FETCH_WITH_CLI=true

2022-12-24 18:12:49 UTC (buildkit.dockerfile.v0)

RUN |1 CURL_VERSION=7.84.0 /bin/sh -c apk update && apk add --update --no-cache bash git tzdata ca-certificates python3 py3-six && apk add --update --no-cache --virtual .build_deps nano openssh-client patch cargo cmake make perl autoconf g++ automake linux-headers libtool util-linux file libidn2-dev libgsasl-dev krb5-dev zstd-dev nghttp2-dev zlib-dev python3-dev c-ares-dev go brotli-dev py3-pip py3-setuptools py3-wheel && wget https://curl.haxx.se/download/curl-$CURL_VERSION.tar.bz2 && tar xjf curl-$CURL_VERSION.tar.bz2 && rm curl-$CURL_VERSION.tar.bz2 && git clone --recursive https://github.com/cloudflare/quiche && cd /quiche && git submodule update --init && cd /quiche/quiche/deps/boringssl && mkdir build && cd build && [[ $(getconf LONG_BIT) = "32" && -z $(file /bin/busybox | grep -i "arm") ]] && configtmp="cmake -DCMAKE_OSX_ARCHITECTURES=i386 -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-msse2 -DCMAKE_C_FLAGS=-m32 -DCMAKE_C_FLAGS=-msse2 -DCMAKE_ASM_FLAGS=-m32 -DCMAKE_ASM_FLAGS=-msse2" || configtmp="cmake " && $configtmp -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=on .. && make -j`nproc` && cd /quiche/quiche && mkdir deps/boringssl/src/lib && ln -vnf $(find -name libcrypto.a -o -name libssl.a) deps/boringssl/src/lib/ && git config http.postBuffer 524288000 && git config http.sslVerify "false" && cargo build --verbose --package quiche --release --features ffi,pkg-config-meta,qlog && cd /curl-$CURL_VERSION && wget https://cdn.jsdelivr.net/gh/lwthiker/curl-impersonate@main/chrome/patches/curl-impersonate.patch && wget https://cdn.jsdelivr.net/gh/curl/curl@master/lib/easy_lock.h -O lib/easy_lock.h && for p in $(ls curl-*.patch); do patch -p1 < $p; done && autoreconf -fi && LDFLAGS="-Wl,-rpath,/usr/lib,-rpath,$PWD/../quiche/target/release" ./configure --with-openssl=$PWD/../quiche/quiche/deps/boringssl/src --with-nghttp2=/usr --without-ngtcp2 --with-brotli --prefix=/usr --enable-ipv6 --enable-unix-sockets --with-libidn2 --disable-static --disable-ldap --with-pic --with-gssapi --enable-ares USE_CURL_SSLKEYLOGFILE=true && make -j$(($(grep -c ^processor /proc/cpuinfo) - 0)) && make install && cd / && ln -fs /usr/bin/curl-impersonate-chrome /usr/bin/curl && ln -fs /usr/bin/curl-impersonate-chrome-config /usr/bin/curl-config && git clone https://github.com/a76yyyy/pycurl-ja3.git && cd pycurl-ja3 && python3 setup.py install --openssl-dir=$PWD/../quiche/quiche/deps/boringssl/src && cd / && apk del .build_deps && apk add --update --no-cache libidn2 libgsasl zstd-libs zlib c-ares && rm -rf /curl-$CURL_VERSION && rm -rf /quiche && rm -rf ~/.cargo && rm -rf /pycurl-ja3 && rm -rf /var/cache/apk/* && rm -rf /usr/share/man/* # buildkit

2023-08-20 14:13:22 UTC (buildkit.dockerfile.v0)

LABEL maintainer=a76yyyy <q981331502@163.com>

2023-08-20 14:13:22 UTC (buildkit.dockerfile.v0)

LABEL org.opencontainers.image.source=https://github.com/qd-today/qd

2023-08-20 14:13:22 UTC (buildkit.dockerfile.v0)

ADD ssh/qd_fetch /root/.ssh/id_rsa # buildkit

2023-08-20 14:13:22 UTC (buildkit.dockerfile.v0)

ADD ssh/qd_fetch.pub /root/.ssh/id_rsa.pub # buildkit

2023-08-20 14:13:22 UTC (buildkit.dockerfile.v0)

WORKDIR /usr/src/app

2023-08-20 14:19:28 UTC (buildkit.dockerfile.v0)

RUN /bin/sh -c sed -i 's/mirrors.ustc.edu.cn/dl-cdn.alpinelinux.org/g' /etc/apk/repositories && apk update && apk add --update --no-cache openssh-client && chmod 600 /root/.ssh/id_rsa && ssh-keyscan gitee.com > /root/.ssh/known_hosts && let num=$RANDOM%100+10 && sleep $num && git clone --depth 1 git@gitee.com:qd-today/qd.git /gitclone_tmp && yes | cp -rf /gitclone_tmp/. /usr/src/app && rm -rf /gitclone_tmp && chmod +x /usr/src/app/update.sh && ln -s /usr/src/app/update.sh /bin/update && apk add --update --no-cache python3 py3-six py3-markupsafe py3-pycryptodome py3-tornado py3-wrapt py3-packaging py3-greenlet py3-urllib3 py3-cryptography py3-aiosignal py3-async-timeout py3-attrs py3-frozenlist py3-multidict py3-charset-normalizer py3-aiohttp py3-typing-extensions py3-yarl && [[ $(getconf LONG_BIT) = "32" ]] && echo "Tips: 32-bit systems do not support ddddocr, so there is no need to install numpy and opencv-python" || apk add --update --no-cache py3-opencv py3-pillow && apk add --no-cache --virtual .build_deps cmake make perl autoconf g++ automake linux-headers libtool util-linux py3-pip py3-setuptools py3-wheel python3-dev py3-numpy-dev && sed -i '/ddddocr/d' requirements.txt && sed -i '/packaging/d' requirements.txt && sed -i '/wrapt/d' requirements.txt && sed -i '/pycryptodome/d' requirements.txt && sed -i '/tornado/d' requirements.txt && sed -i '/MarkupSafe/d' requirements.txt && sed -i '/pillow/d' requirements.txt && sed -i '/opencv/d' requirements.txt && sed -i '/numpy/d' requirements.txt && sed -i '/greenlet/d' requirements.txt && sed -i '/urllib3/d' requirements.txt && sed -i '/cryptography/d' requirements.txt && sed -i '/aiosignal/d' requirements.txt && sed -i '/async-timeout/d' requirements.txt && sed -i '/attrs/d' requirements.txt && sed -i '/frozenlist/d' requirements.txt && sed -i '/multidict/d' requirements.txt && sed -i '/charset-normalizer/d' requirements.txt && sed -i '/aiohttp/d' requirements.txt && sed -i '/typing-extensions/d' requirements.txt && sed -i '/yarl/d' requirements.txt && pip install --no-cache-dir -r requirements.txt --break-system-packages && apk del .build_deps && sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && rm -rf /var/cache/apk/* && rm -rf /usr/share/man/* # buildkit

2023-08-20 14:19:28 UTC (buildkit.dockerfile.v0)

ENV PORT=80

2023-08-20 14:19:28 UTC (buildkit.dockerfile.v0)

EXPOSE map[80/tcp:{}]

2023-08-20 14:19:28 UTC (buildkit.dockerfile.v0)

ENV TZ=CST-8

2023-08-20 14:19:28 UTC (buildkit.dockerfile.v0)

VOLUME [/usr/src/app/config]

2023-08-20 14:19:28 UTC (buildkit.dockerfile.v0)

CMD ["sh" "-c" "python /usr/src/app/run.py"]

Danger Zone
Delete Tag

Please be careful as this will not just delete the reference but also the actual content!

For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.

Delete