Update: AI image build with code

This commit is contained in:
dx-tan 2023-12-14 14:23:18 +07:00
parent 08e40148b7
commit 8d3aa46b1f
3 changed files with 9 additions and 5 deletions

View File

@ -1 +1,2 @@
.git
weights/

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
*.pth
*.zip
weights/
sdsvkie
minio_data/
test_images/
*.pem

View File

@ -13,10 +13,12 @@ RUN apt-get update && apt-get install -y gcc g++ ffmpeg libsm6 libxext6 poppler-
WORKDIR /workspace
COPY ./modules/ocr_engine/externals/ /workspace/cope2n-ai-fi/modules/ocr_engine/externals/
COPY ./modules/ocr_engine/requirements.txt /workspace/cope2n-ai-fi/modules/ocr_engine/requirements.txt
COPY ./modules/sdsvkvu/ /workspace/cope2n-ai-fi/modules/sdsvkvu/
COPY ./requirements.txt /workspace/cope2n-ai-fi/requirements.txt
# COPY ./modules/ocr_engine/externals/ /workspace/cope2n-ai-fi/modules/ocr_engine/externals/
# COPY ./modules/ocr_engine/requirements.txt /workspace/cope2n-ai-fi/modules/ocr_engine/requirements.txt
# COPY ./modules/sdsvkvu/ /workspace/cope2n-ai-fi/modules/sdsvkvu/
# COPY ./requirements.txt /workspace/cope2n-ai-fi/requirements.txt
COPY . /workspace/cope2n-ai-fi
RUN cd /workspace/cope2n-ai-fi/modules/ocr_engine/externals/sdsv_dewarp && pip3 install -v -e .
RUN cd /workspace/cope2n-ai-fi/modules/ocr_engine/externals/sdsvtd && pip3 install -v -e .