1 Star 0 Fork 0

alexzshl/OnnxOCR

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 643 Bytes
一键复制 编辑 原始数据 按行查看 历史
jingsongliujing 提交于 2025-01-13 15:32 +08:00 . 增加docker镜像以及service服务
# 使用 Python 3.7 作为基础镜像
FROM python:3.7-slim
# 设置工作目录
WORKDIR /app
# 复制 requirements.txt 到工作目录
COPY requirements.txt .
# 安装依赖
RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
RUN apt-get update
RUN apt-get install ffmpeg libsm6 libxext6 -y
RUN apt-get install libgl1
# 复制项目目录中的所有文件到镜像中
COPY . .
# 设置环境变量(如果需要)
ENV PYTHONUNBUFFERED=1
# 暴露服务端口(假设你的 Flask 服务运行在 5005 端口)
EXPOSE 5005
# 启动 Flask 服务
CMD ["python", "app-service.py"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/alexzshl/OnnxOCR.git
git@gitee.com:alexzshl/OnnxOCR.git
alexzshl
OnnxOCR
OnnxOCR
main

搜索帮助