feat: unify on single repo-root compose file for dev and prod
This commit is contained in:
parent
9acdbaa453
commit
af993bd43f
18 changed files with 253 additions and 229 deletions
19
Dockerfile.lfx
Normal file
19
Dockerfile.lfx
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Stateless Langflow flow runtime (LFX). Serves versioned flow JSON files
|
||||
# deployed by our backend via POST /flows/upload/ (persisted in /flows).
|
||||
# LFX stays on the internal compose network; our FastAPI is the only
|
||||
# public surface and proxies run/stream calls.
|
||||
FROM python:3.12-slim
|
||||
|
||||
ENV PYTHONUNBUFFERED=1 \
|
||||
PIP_NO_CACHE_DIR=1
|
||||
|
||||
# lfx = flow runtime; requests = convenience for custom-component code.
|
||||
RUN pip install lfx requests
|
||||
|
||||
RUN mkdir -p /flows
|
||||
VOLUME /flows
|
||||
EXPOSE 6004
|
||||
|
||||
# Serve the /flows dir (uploaded flows persist there via --flow-dir).
|
||||
# Flags verified against `lfx serve --help` (lfx 1.12.0).
|
||||
CMD ["lfx", "serve", "--host", "0.0.0.0", "--port", "6004", "--flow-dir", "/flows", "/flows"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue