这是一个将TrWebOCR按自己的意愿打包的镜像
web和api端口8089
docker run -d --name trwebocr -p 8089:8089 ddio001/trwebocr
FROM python:3.7-slim
RUN mkdir /TrWebOCR \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& dpkg-reconfigure -f noninteractive tzdata \
&& sed -i s@/deb.debian.org/@/mirrors.163.com/@g /etc/apt/sources.list \
&& sed -i s@/security.debian.org/@/mirrors.163.com/@g /etc/apt/sources.list \
&& apt update -y \
&& apt upgrade -y \
&& apt install -y git libglib2.0-dev libsm6 libxrender1 libxext-dev supervisor build-essential \
&& git clone https://hub.fastgit.org/alisen39/TrWebOCR.git /TrWebOCR \
&& apt remove -y git \
&& apt clean \
&& rm -rf /var/lib/apt/lists/* \
&& cd /TrWebOCR \
&& rm -f .dockerignore .gitignore Dockerfile LICENSE README.md updateHistory.md \
&& rm -rf fontend \
&& pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple \
&& pip install -r requirements.txt \
&& rm -f requirements.txt \
&& python install.py \
&& rm -f install.py
WORKDIR /TrWebOCR
EXPOSE 8089
CMD supervisord -c ./supervisord.conf
Content type
Image
Digest
Size
825.1 MB
Last updated
about 5 years ago
docker pull ddio001/trwebocr