fix: adjust GitLoader to work in a hosted environment (#5040)

* fix: add git installation to dockerfile dependencies

* chore: make input optional
This commit is contained in:
Ítalo Johnny 2024-12-04 11:58:31 -03:00 committed by GitHub
commit 44a3e7643a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 2 deletions

View file

@ -24,6 +24,7 @@ RUN apt-get update \
&& apt-get install --no-install-recommends -y \
# deps for building python deps
build-essential \
git \
# npm
npm \
# gcc
@ -82,4 +83,4 @@ WORKDIR /app
ENV LANGFLOW_HOST=0.0.0.0
ENV LANGFLOW_PORT=7860
CMD ["langflow", "run"]
CMD ["langflow", "run"]

View file

@ -25,6 +25,7 @@ RUN apt-get update \
&& apt-get install --no-install-recommends -y \
# deps for building python deps
build-essential \
git \
# npm
npm \
# gcc

View file

@ -24,6 +24,7 @@ RUN apt-get update \
&& apt-get install --no-install-recommends -y \
# deps for building python deps
build-essential \
git \
# npm
npm \
# gcc

View file

@ -20,7 +20,7 @@ class GitLoaderComponent(Component):
MessageTextInput(
name="repo_path",
display_name="Repository Path",
required=True,
required=False,
info="The local path to the Git repository.",
),
MessageTextInput(