Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
chore(api): api image multistage build (#1069)
Rhon Joec9194ba3828a
diff --git a/api/Dockerfile b/api/Dockerfileindex 229c85d7e9d..4bd1e68db76 100644--- a/api/Dockerfile+++ b/api/Dockerfile@@ -1,7 +1,18 @@-FROM python:3.10-slim+# packages install stage+FROM python:3.10-slim AS baseLABEL maintainer="[email protected]"+RUN apt-get update \+ && apt-get install -y --no-install-recommends gcc g++ python3-dev libc-dev libffi-dev++COPY requirements.txt /requirements.txt++RUN pip install --prefix=/pkg -r requirements.txt++# build stage+FROM python:3.10-slim AS builder+ENV FLASK_APP app.pyENV EDITION SELF_HOSTEDENV DEPLOY_ENV PRODUCTION@@ -15,13 +26,12 @@ EXPOSE 5001WORKDIR /app/api-RUN apt-get update && \- apt-get install -y bash curl wget vim gcc g++ python3-dev libc-dev libffi-dev nodejs--COPY requirements.txt /app/api/requirements.txt--RUN pip install -r requirements.txt+RUN apt-get update \+ && apt-get install -y --no-install-recommends bash curl wget vim nodejs \+ && apt-get autoremove \+ && rm -rf /var/lib/apt/lists/*+COPY --from=base /pkg /usr/localCOPY . /app/api/COPY docker/entrypoint.sh /entrypoint.sh