Update workflow and Dockerfile for Langflow base pre-release
This commit is contained in:
parent
8466958436
commit
16830570dd
4 changed files with 12 additions and 15 deletions
9
.github/workflows/pre-release-base.yml
vendored
9
.github/workflows/pre-release-base.yml
vendored
|
|
@ -1,4 +1,4 @@
|
|||
name: pre-release-base
|
||||
name: Langflow Base Pre-release
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
|
@ -20,7 +20,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install poetry
|
||||
run: pipx install poetry==$POETRY_VERSION && poetry self add poetry-monorepo-dependency-plugin
|
||||
run: pipx install poetry==$POETRY_VERSION
|
||||
- name: Set up Python 3.10
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
|
|
@ -61,7 +61,6 @@ jobs:
|
|||
with:
|
||||
context: .
|
||||
push: true
|
||||
file: ./build_and_push.Dockerfile
|
||||
file: ./build_and_push_base.Dockerfile
|
||||
tags: |
|
||||
logspace/langflow:${{ steps.check-version.outputs.version }}
|
||||
logspace/langflow:latest-dev
|
||||
logspace/langflow:base-${{ steps.check-version.outputs.version }}
|
||||
|
|
|
|||
5
.github/workflows/pre-release-langflow.yml
vendored
5
.github/workflows/pre-release-langflow.yml
vendored
|
|
@ -1,4 +1,4 @@
|
|||
name: pre-release-langflow
|
||||
name: Langflow Pre-release
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
|
@ -24,7 +24,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install poetry
|
||||
run: pipx install poetry==$POETRY_VERSION && poetry self add poetry-monorepo-dependency-plugin
|
||||
run: pipx install poetry==$POETRY_VERSION
|
||||
- name: Set up Python 3.10
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
|
|
@ -68,4 +68,3 @@ jobs:
|
|||
file: ./build_and_push.Dockerfile
|
||||
tags: |
|
||||
logspace/langflow:${{ steps.check-version.outputs.version }}
|
||||
logspace/langflow:latest-dev
|
||||
|
|
|
|||
|
|
@ -65,8 +65,11 @@ COPY src ./src
|
|||
COPY scripts ./scripts
|
||||
COPY Makefile ./
|
||||
COPY README.md ./
|
||||
RUN make build
|
||||
|
||||
RUN --mount=type=cache,target=/root/.cache \
|
||||
curl -sSL https://install.python-poetry.org | python3 -
|
||||
RUN python -m pip install requests && cd ./scripts && python update_dependencies.py
|
||||
RUN $POETRY_HOME/bin/poetry lock
|
||||
RUN $POETRY_HOME/bin/poetry build
|
||||
# Final stage for the application
|
||||
FROM python-base as final
|
||||
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ COPY Makefile ./
|
|||
COPY README.md ./
|
||||
RUN cd src/frontend && npm run build
|
||||
COPY src/backend ./src/backend
|
||||
RUN cp -r src/frontend/build src/backend/base/langflow/frontend
|
||||
RUN rm -rf src/backend/base/dist
|
||||
RUN cd src/backend/base && $POETRY_HOME/bin/poetry build --format sdist
|
||||
|
||||
|
|
@ -86,10 +87,5 @@ COPY --from=builder-base /app/src/backend/base/dist/*.tar.gz ./
|
|||
# Install the package from the .tar.gz
|
||||
RUN pip install *.tar.gz
|
||||
|
||||
# Now remove the .tar.gz
|
||||
RUN rm *.tar.gz
|
||||
# Remove the source code
|
||||
RUN rm -rf /app
|
||||
|
||||
WORKDIR /app
|
||||
CMD ["python", "-m", "langflow", "run", "--host", "0.0.0.0", "--port", "7860"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue