feat: add github action to build docker for release (#168) #none

* feat: update build push docker action

* feat: remove tag trigger

* feat: remove manual trigger

* fix: update workflow

* feat: update build-push-docker.yaml

* fix: update workflow

* fix: update workflow

* fix: update workflow

* refactor: comfort pre-commit

* feat: update permission

* feat: update docker support pdfjs

* refactor: comfort pre-commit
This commit is contained in:
kan_cin
2024-09-05 15:02:23 +07:00
committed by GitHub
parent 772186b6e5
commit 8be8a4a9d0
3 changed files with 124 additions and 2 deletions

View File

@@ -17,6 +17,8 @@ RUN apt-get update -qqy && \
g++ \
poppler-utils \
libpoppler-dev \
unzip \
curl \
&& apt-get clean \
&& apt-get autoremove \
&& rm -rf /var/lib/apt/lists/*
@@ -27,13 +29,18 @@ ENV PYTHONIOENCODING=UTF-8
WORKDIR /app
FROM base_image as dev
COPY scripts/download_pdfjs.sh /app/scripts/download_pdfjs.sh
RUN chmod +x /app/scripts/download_pdfjs.sh
ENV PDFJS_PREBUILT_DIR="/app/libs/ktem/ktem/assets/prebuilt/pdfjs-dist"
RUN bash scripts/download_pdfjs.sh $PDFJS_PREBUILT_DIR
COPY . /app
RUN --mount=type=ssh pip install --no-cache-dir -e "libs/kotaemon[all]" \
&& pip install --no-cache-dir -e "libs/ktem" \
&& pip install --no-cache-dir graphrag future \
&& pip install --no-cache-dir "pdfservices-sdk@git+https://github.com/niallcm/pdfservices-python-sdk.git@bump-and-unfreeze-requirements"
ENTRYPOINT ["gradio", "app.py"]
CMD ["python", "app.py"]