Fix build issues

This commit is contained in:
Viet Anh Nguyen 2023-12-14 14:06:47 +07:00
parent eb2c08195d
commit 95aee4310d
7 changed files with 1 additions and 15 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
.git

View File

@ -3,9 +3,6 @@ __pycache__
DataBase/image_temp/ DataBase/image_temp/
DataBase/json_temp/ DataBase/json_temp/
DataBase/template.db DataBase/template.db
# sdsvtd/
# sdsvtr/
# sdsvkie/
detectron2/ detectron2/
output/ output/
data/ data/

View File

@ -15,7 +15,6 @@ WORKDIR /workspace
COPY ./modules/ocr_engine/externals/ /workspace/cope2n-ai-fi/modules/ocr_engine/externals/ 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/ocr_engine/requirements.txt /workspace/cope2n-ai-fi/modules/ocr_engine/requirements.txt
COPY ./modules/sdsvkie/ /workspace/cope2n-ai-fi/modules/sdsvkie/
COPY ./modules/sdsvkvu/ /workspace/cope2n-ai-fi/modules/sdsvkvu/ COPY ./modules/sdsvkvu/ /workspace/cope2n-ai-fi/modules/sdsvkvu/
COPY ./requirements.txt /workspace/cope2n-ai-fi/requirements.txt COPY ./requirements.txt /workspace/cope2n-ai-fi/requirements.txt
@ -23,7 +22,6 @@ RUN cd /workspace/cope2n-ai-fi/modules/ocr_engine/externals/sdsv_dewarp && pip3
RUN cd /workspace/cope2n-ai-fi/modules/ocr_engine/externals/sdsvtd && pip3 install -v -e . RUN cd /workspace/cope2n-ai-fi/modules/ocr_engine/externals/sdsvtd && pip3 install -v -e .
RUN cd /workspace/cope2n-ai-fi/modules/ocr_engine/externals/sdsvtr && pip3 install -v -e . RUN cd /workspace/cope2n-ai-fi/modules/ocr_engine/externals/sdsvtr && pip3 install -v -e .
RUN cd /workspace/cope2n-ai-fi/modules/sdsvkie && pip3 install -v -e .
RUN cd /workspace/cope2n-ai-fi/modules/sdsvkvu && pip3 install -v -e . RUN cd /workspace/cope2n-ai-fi/modules/sdsvkvu && pip3 install -v -e .
RUN cd /workspace/cope2n-ai-fi && pip3 install -r requirements.txt RUN cd /workspace/cope2n-ai-fi && pip3 install -r requirements.txt

View File

@ -5,13 +5,11 @@ RUN apt-get update && apt-get install -y gcc g++ ffmpeg libsm6 libxext6
WORKDIR /workspace WORKDIR /workspace
COPY ./requirements.txt /workspace/cope2n-ai-fi/requirements.txt COPY ./requirements.txt /workspace/cope2n-ai-fi/requirements.txt
COPY ./sdsvkie/ /workspace/cope2n-ai-fi/sdsvkie/
COPY ./sdsvtd /workspace/cope2n-ai-fi/sdsvtd/ COPY ./sdsvtd /workspace/cope2n-ai-fi/sdsvtd/
COPY ./sdsvtr/ /workspace/cope2n-ai-fi/sdsvtr/ COPY ./sdsvtr/ /workspace/cope2n-ai-fi/sdsvtr/
COPY ./models/ /models COPY ./models/ /models
RUN cd /workspace/cope2n-ai-fi && pip3 install -r requirements.txt RUN cd /workspace/cope2n-ai-fi && pip3 install -r requirements.txt
RUN cd /workspace/cope2n-ai-fi/sdsvkie && pip3 install -v -e .
RUN cd /workspace/cope2n-ai-fi/sdsvtd && pip3 install -v -e . RUN cd /workspace/cope2n-ai-fi/sdsvtd && pip3 install -v -e .
RUN cd /workspace/cope2n-ai-fi/sdsvtr && pip3 install -v -e . RUN cd /workspace/cope2n-ai-fi/sdsvtr && pip3 install -v -e .

View File

@ -3,7 +3,6 @@ django-environ
sdsv_dewarp sdsv_dewarp
sdsvtd sdsvtd
sdsvtr sdsvtr
sdsvkie
sdsvkvu sdsvkvu
pymupdf pymupdf

View File

@ -1,9 +1,2 @@
#!/bin/bash #!/bin/bash
# cd /cope2n-ai-fi/sdsvkie
# pip3 install -v -e .
# cd /cope2n-ai-fi/sdsvtd
# pip3 install -v -e .
# cd /cope2n-ai-fi/sdsvtr
# pip3 install -v -e .
# cd /cope2n-ai-fi
bash -c "celery -A celery_worker.worker_fi worker --loglevel=INFO --pool=solo" bash -c "celery -A celery_worker.worker_fi worker --loglevel=INFO --pool=solo"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 270 KiB