11# syntax=docker/dockerfile:1
22# Dockerfile for Langflow Executor Node
3- # Build from repo root: docker build -f node/Dockerfile -t langflow-executor-node .
4- # OR build from node directory: docker build -f Dockerfile -t langflow-executor-node ../
3+ # Build from repo root: docker build -f Dockerfile -t droq-node-template:test .
54
65# ###############################
76# BUILDER STAGE
@@ -28,20 +27,19 @@ ENV UV_COMPILE_BYTECODE=1
2827ENV UV_LINK_MODE=copy
2928
3029# Copy Langflow dependency files first (for better caching)
31- # These paths work when building from repo root
32- COPY app/src/lfx/pyproject.toml /app/src/lfx/pyproject.toml
33- COPY app/src/lfx/README.md /app/src/lfx/README.md
30+ COPY lfx/pyproject.toml /app/lfx/pyproject.toml
31+ COPY lfx/README.md /app/lfx/README.md
3432
3533# Copy executor node dependency files
36- COPY node/ pyproject.toml /app/node/pyproject.toml
34+ COPY pyproject.toml /app/node/pyproject.toml
3735
3836# Copy Langflow source (needed for installation)
39- COPY app/src/ lfx/src /app/src /lfx/src
37+ COPY lfx/src /app/lfx/src
4038
4139# Install Langflow (lfx) package with all dependencies
4240# This installs lfx and all its dependencies from pyproject.toml
4341RUN --mount=type=cache,target=/root/.cache/uv \
44- cd /app/src/ lfx && \
42+ cd /app/lfx && \
4543 uv pip install --system --no-cache -e .
4644
4745# Install common Langchain integration packages needed by components
@@ -69,10 +67,10 @@ RUN --mount=type=cache,target=/root/.cache/uv \
6967 python-dotenv
7068
7169# Copy executor node source
72- COPY node/ src /app/node/src
70+ COPY src/node /app/node/src
7371
7472# Copy components.json mapping file
75- COPY node/ components.json /app/components.json
73+ COPY components.json /app/components.json
7674
7775# ###############################
7876# RUNTIME STAGE
@@ -100,7 +98,7 @@ COPY --from=builder /usr/local/bin /usr/local/bin
10098
10199# Copy application code
102100COPY --from=builder --chown=executor:root /app/node/src /app/src
103- COPY --from=builder --chown=executor:root /app/src/ lfx/src /app/src/lfx/src
101+ COPY --from=builder --chown=executor:root /app/lfx/src /app/src/lfx/src
104102COPY --from=builder --chown=executor:root /app/components.json /app/components.json
105103
106104# Set environment variables
@@ -122,3 +120,4 @@ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
122120
123121# Run the executor node
124122CMD ["python" , "-m" , "uvicorn" , "node.api:app" , "--host" , "0.0.0.0" , "--port" , "8000" ]
123+
0 commit comments