INNER CODE UNIT · Python
_build_dockerfile_content
omnirexflora-labs/omnicoreagent · src/omnicoreagent/serve/cli.py:464
def _build_dockerfile_content(agent_path: str) -> str:
"""Build the OmniServe Dockerfile content."""
quoted_agent_path = _quote_docker_env_value(agent_path)
return f"""FROM python:3.12-slim
ENV PYTHONUNBUFFERED=1 \\
PIP_NO_CACHE_DIR=1 \\
AGENT_PATH={quoted_agent_path} \\
OMNICOREAGENT_WORKSPACE_BACKEND=local \\
OMNICOREAGENT_WORKSPACE_DIR=/tmp/workspace
WORKDIR /app
RUN apt-get update \\
&& apt-get install -y --no-install-recommends curl \\
&& rm -rf /var/lib/apt/lists/*
RUN useradd --create-home --uid 10001 --shell /usr/sbin/nologin appuser