paddleocr-web (2026-05-24)
Published 2026-05-25 00:30:09 +00:00 by berberman
Installation
docker pull git.jackywang.page/berberman/paddleocr-web:2026-05-24sha256:6f43059de77e37e0a1bc67c2dac373647c78329217f2b577e883672305fef1b7Image layers
| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.ref.name=ubuntu |
| LABEL org.opencontainers.image.version=20.04 |
| ADD file:3478fb5bdcf8ad03d450d48901a6a8452c0ab253f24d21b1e27f99259db2d26b in / |
| CMD ["/bin/bash"] |
| MAINTAINER PaddlePaddle Authors <paddle-dev@baidu.com> |
| ARG WITH_GPU |
| ARG WITH_AVX |
| ENV WITH_GPU=OFF |
| ENV WITH_AVX=ON |
| ENV DEBIAN_FRONTEND=noninteractive |
| ENV HOME=/root |
| COPY paddle/scripts/docker/root/ /root/ # buildkit |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c chmod 777 /tmp # buildkit |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c apt-get update --allow-unauthenticated && apt-get install -y software-properties-common && add-apt-repository ppa:deadsnakes/ppa && apt-get update && apt-get install -y curl wget vim git unzip unrar tar xz-utils libssl-dev bzip2 gzip coreutils ntp language-pack-zh-hans libsm6 libxext6 libxrender-dev libgl1-mesa-glx bison graphviz libjpeg-dev zlib1g-dev automake locales swig net-tools libtool kmod # buildkit |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c apt-get install -y gcc g++ make # buildkit |
| WORKDIR /usr/bin |
| COPY tools/dockerfile/build_scripts /build_scripts # buildkit |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c bash /build_scripts/install_patchelf.sh # buildkit |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c bash /build_scripts/install_gcc.sh gcc82 # buildkit |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c cp gcc gcc.bak && cp g++ g++.bak && rm gcc && rm g++ # buildkit |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c ln -s /usr/local/gcc-8.2/bin/gcc /usr/local/bin/gcc # buildkit |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c ln -s /usr/local/gcc-8.2/bin/g++ /usr/local/bin/g++ # buildkit |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c ln -s /usr/local/gcc-8.2/bin/gcc /usr/bin/gcc # buildkit |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c ln -s /usr/local/gcc-8.2/bin/g++ /usr/bin/g++ # buildkit |
| ENV PATH=/usr/local/gcc-8.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c rm -rf /build_script # buildkit |
| WORKDIR /home |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c wget -q https://cmake.org/files/v3.18/cmake-3.18.0-Linux-x86_64.tar.gz && tar -zxvf cmake-3.18.0-Linux-x86_64.tar.gz && rm cmake-3.18.0-Linux-x86_64.tar.gz # buildkit |
| ENV PATH=/home/cmake-3.18.0-Linux-x86_64/bin:/usr/local/gcc-8.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c apt-get update && apt-get install -y python3.10 python3.10-dev python3.10-distutils && apt-get install python-is-python3 && rm /usr/bin/python && ln -s /usr/bin/python3.10 /usr/bin/python && rm /usr/bin/python3 && ln -s /usr/bin/python3.10 /usr/bin/python3 # buildkit |
| WORKDIR /home |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c wget https://files.pythonhosted.org/packages/ef/cc/93f7213b2ab5ed383f98ce8020e632ef256b406b8569606c3f160ed8e1c9/setuptools-68.2.2.tar.gz && tar xf setuptools-68.2.2.tar.gz # buildkit |
| WORKDIR /home/setuptools-68.2.2 |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c python3.10 setup.py build && python3.10 setup.py install # buildkit |
| WORKDIR /home |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c wget https://files.pythonhosted.org/packages/1f/7f/4da15e07ccd11c84c1ccc8f6e24288d5e76c99441bf80e315b33542db951/pip-23.3.1.tar.gz && tar -zxf pip-23.3.1.tar.gz # buildkit |
| WORKDIR /home/pip-23.3.1 |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c python3.10 setup.py install # buildkit |
| WORKDIR /home |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c rm setuptools-68.2.2.tar.gz pip-23.3.1.tar.gz && rm -r setuptools-68.2.2 pip-23.3.1 # buildkit |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c wget -q https://ftp.gnu.org/gnu/binutils/binutils-2.33.1.tar.gz && tar -xzf binutils-2.33.1.tar.gz && cd binutils-2.33.1 && ./configure && make -j && make install && cd .. && rm -rf binutils-2.33.1 binutils-2.33.1.tar.gz # buildkit |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c wget --no-check-certificate -qO- https://paddle-ci.gz.bcebos.com/go1.17.2.linux-amd64.tar.gz | tar -xz -C /usr/local && mkdir /root/gopath && mkdir /root/gopath/bin && mkdir /root/gopath/src # buildkit |
| ENV GOROOT=/usr/local/go GOPATH=/root/gopath |
| ENV PATH=/home/cmake-3.18.0-Linux-x86_64/bin:/usr/local/gcc-8.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/go/bin:/root/gopath/bin |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c apt-get install -y golang-glide # buildkit |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c git config --global credential.helper store # buildkit |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c localedef -i en_US -f UTF-8 en_US.UTF-8 # buildkit |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c rm -f /usr/local/bin/pip && ln -s /usr/local/bin/pip3.10 /usr/local/bin/pip && rm -f /usr/local/bin/pip3 && ln -s /usr/local/bin/pip3.10 /usr/local/bin/pip3 # buildkit |
| COPY ./python/requirements.txt /root/ # buildkit |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c pip3.10 --no-cache-dir install -r /root/requirements.txt # buildkit |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c wget -q https://paddle-ci.gz.bcebos.com/ccache-4.8.2.tar.gz && tar xf ccache-4.8.2.tar.gz && mkdir /usr/local/ccache-4.8.2 && cd ccache-4.8.2 && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local/ccache-4.8.2 .. && make -j8 && make install && ln -s /usr/local/ccache-4.8.2/bin/ccache /usr/local/bin/ccache && cd ../../ && rm -rf ccache-4.8.2.tar.gz # buildkit |
| RUN |2 WITH_GPU=OFF WITH_AVX=ON /bin/sh -c wget https://paddle-ci.cdn.bcebos.com/clang+llvm-3.8.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz && tar xf clang+llvm-3.8.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz && cd clang+llvm-3.8.0-x86_64-linux-gnu-ubuntu-16.04 && cp -rn * /usr/local && cd .. && rm -rf clang+llvm-3.8.0-x86_64-linux-gnu-ubuntu-16.04 && rm -rf clang+llvm-3.8.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz # buildkit |
| EXPOSE map[22/tcp:{}] |
| RUN /bin/sh -c python -m pip install paddlepaddle==3.1.0 -i https://www.paddlepaddle.org.cn/packages/stable/cpu/ # buildkit |
| RUN /bin/sh -c python -m pip install --no-cache-dir paddleocr aiohttp # buildkit |
| RUN /bin/sh -c useradd --system --home /var/lib/paddleocr --create-home --uid 10002 paddleocr # buildkit |
| WORKDIR /app |
| COPY ocr/paddleocr_http.py /app/paddleocr_http.py # buildkit |
| COPY ocr/serve.py /app/serve.py # buildkit |
| RUN /bin/sh -c chown -R 10002:10002 /app /var/lib/paddleocr # buildkit |
| USER 10002 |
| ENV HOME=/var/lib/paddleocr |
| ENV XDG_CACHE_HOME=/var/lib/paddleocr/.cache |
| CMD ["python" "/app/serve.py"] |
Labels
| Key | Value |
|---|---|
| org.opencontainers.image.ref.name | ubuntu |
| org.opencontainers.image.version | 20.04 |
Details
2026-05-25 00:30:09 +00:00
Versions (1)
View all
Container
1
OCI / Docker
linux/amd64
1.8 GiB
2026-05-24
2026-05-25