mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-27 22:56:29 +00:00
Some checks are pending
Deploy image by kubeconfig / build-fastgpt-docs-images (push) Waiting to run
Deploy image by kubeconfig / update-docs-image (push) Blocked by required conditions
Deploy image to vercel / deploy-production (push) Waiting to run
Build FastGPT images in Personal warehouse / build-fastgpt-images (push) Waiting to run
17 lines
536 B
Docker
17 lines
536 B
Docker
FROM pytorch/pytorch:2.4.0-cuda11.8-cudnn9-runtime
|
|
|
|
# please download the model from https://huggingface.co/vikp/surya_det3
|
|
# and https://huggingface.co/vikp/surya_rec2, and put it in the directory vikp/
|
|
COPY ./vikp ./vikp
|
|
|
|
COPY requirements.txt .
|
|
|
|
RUN python3 -m pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
|
|
|
RUN python3 -m pip uninstall opencv-python -y
|
|
|
|
RUN python3 -m pip install opencv-python-headless -i https://pypi.tuna.tsinghua.edu.cn/simple
|
|
|
|
COPY app.py Dockerfile ./
|
|
|
|
ENTRYPOINT python3 app.py |