Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能提供docker镜像吗,打包报错了 #1

Open
YJQYOUBIN opened this issue May 15, 2024 · 1 comment
Open

能提供docker镜像吗,打包报错了 #1

YJQYOUBIN opened this issue May 15, 2024 · 1 comment

Comments

@YJQYOUBIN
Copy link

image
@AJDX3906
Copy link
Owner

镜像有点大3.59GB。
你可以把Dockerfile修改为下面的尝试一下,在我的机器上能跑起来(ubuntu 20.04)。

FROM python:3.7
#这里可以注释掉,本意是换源,但近期重新尝试发现这步报错。
#RUN sed -i "s@http://\(deb\|security\).debian.org@https://mirrors.tencent.com@g" /etc/apt/sources.list
RUN apt-get update -y --fix-missing && apt-get upgrade -y
RUN apt-get install cmake ffmpeg libsm6 libxext6  -y
WORKDIR /code
COPY . .
COPY /paddleocr /root/.paddleocr
RUN pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple
#这里把 -i https://mirror.xxxxx 删掉了,本意也是想用国内pip源加速,看你这步报错了,可以直接pip install 试试。
RUN pip install -r requirements.txt
EXPOSE 8000
CMD ["gunicorn", "main:app", "-c", "./gunicorn.config.py"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants