Merge branch 'main' into docling-req
This commit is contained in:
commit
52cb60dfc5
3 changed files with 4 additions and 48 deletions
|
|
@ -1,49 +1,5 @@
|
||||||
FROM python:3.12-slim
|
FROM langflowai/langflow-nightly:1.6.3.dev0
|
||||||
|
|
||||||
# Set environment variables
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
|
||||||
ENV PYTHONUNBUFFERED=1
|
|
||||||
ENV RUSTFLAGS="--cfg reqwest_unstable"
|
|
||||||
|
|
||||||
# Accept build arguments for git repository and branch
|
|
||||||
ARG GIT_REPO=https://github.com/langflow-ai/langflow.git
|
|
||||||
ARG GIT_BRANCH=test-openai-responses
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
# Install system dependencies
|
|
||||||
RUN apt-get update && apt-get install -y \
|
|
||||||
build-essential \
|
|
||||||
curl \
|
|
||||||
git \
|
|
||||||
ca-certificates \
|
|
||||||
gnupg \
|
|
||||||
npm \
|
|
||||||
rustc cargo pkg-config libssl-dev \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# Install uv for faster Python package management
|
|
||||||
RUN pip install uv
|
|
||||||
|
|
||||||
# Clone the repository and checkout the specified branch
|
|
||||||
RUN git clone --depth 1 --branch ${GIT_BRANCH} ${GIT_REPO} /app
|
|
||||||
|
|
||||||
# Install backend dependencies
|
|
||||||
RUN uv sync --frozen --no-install-project --no-editable --extra postgresql
|
|
||||||
|
|
||||||
# Build frontend
|
|
||||||
WORKDIR /app/src/frontend
|
|
||||||
RUN NODE_OPTIONS=--max_old_space_size=4096 npm ci && \
|
|
||||||
NODE_OPTIONS=--max_old_space_size=4096 npm run build && \
|
|
||||||
mkdir -p /app/src/backend/base/langflow/frontend && \
|
|
||||||
cp -r build/* /app/src/backend/base/langflow/frontend/
|
|
||||||
|
|
||||||
# Return to app directory and install the project
|
|
||||||
WORKDIR /app
|
|
||||||
RUN uv sync --frozen --no-dev --no-editable --extra postgresql
|
|
||||||
|
|
||||||
# Expose ports
|
|
||||||
EXPOSE 7860
|
EXPOSE 7860
|
||||||
|
|
||||||
# Start the backend server
|
CMD ["langflow", "run", "--host", "0.0.0.0", "--port", "7860"]
|
||||||
CMD ["uv", "run", "langflow", "run", "--host", "0.0.0.0", "--port", "7860"]
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[project]
|
[project]
|
||||||
name = "openrag"
|
name = "openrag"
|
||||||
version = "0.1.14.dev1"
|
version = "0.1.14.dev2"
|
||||||
description = "Add your description here"
|
description = "Add your description here"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.13"
|
requires-python = ">=3.13"
|
||||||
|
|
|
||||||
2
uv.lock
generated
2
uv.lock
generated
|
|
@ -2282,7 +2282,7 @@ wheels = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "openrag"
|
name = "openrag"
|
||||||
version = "0.1.14.dev1"
|
version = "0.1.14.dev2"
|
||||||
source = { editable = "." }
|
source = { editable = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "agentd" },
|
{ name = "agentd" },
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue