1 Star 0 Fork 135

fanwan / cnocr

forked from cyahua / cnocr 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
breezedeus 提交于 2022-09-09 11:54 . update
FROM ubuntu:bionic
ENV TZ=Asia/Shanghai
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y apt-transport-https ca-certificates gpg-agent curl software-properties-common
RUN add-apt-repository ppa:deadsnakes/ppa \
&& curl https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg -o /tmp/gpg.key && apt-key add /tmp/gpg.key \
&& add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable" \
&& apt-get update && apt-get install -y cmake python3.8 && ln -s /usr/bin/python3.8 /usr/bin/python \
&& apt-get install -y python3-pip python3.8-dev \
&& python -m pip install -U pip \
&& rm -f /usr/bin/pip && ln -s /usr/bin/pip3 /usr/bin/pip
RUN apt-get update && apt-get install -y python3-opencv libglib2.0-0 libsm6 libxext6 libxrender-dev
RUN pip install -U pip && pip install torch==1.11.0 \
&& pip install -U cnocr[serve]==2.2.2 --extra-index-url https://pypi.org/simple
CMD ["cnocr", "serve", "-H", "0.0.0.0", "-p", "8501"]
EXPOSE 8501
Python
1
https://gitee.com/fanwan/cnocr.git
git@gitee.com:fanwan/cnocr.git
fanwan
cnocr
cnocr
master

搜索帮助