INNER CODE UNIT · Python

_dockerignore_content

omnirexflora-labs/omnicoreagent · src/omnicoreagent/serve/cli.py:431

def _dockerignore_content(cwd: Path) -> str:
    lines = [
        "# Written by omniserve generate-dockerfile: the image copies the build context.",
        "**/.git",
        "**/.venv",
        "**/venv",
        "**/__pycache__",
        "**/*.pyc",
        "**/.omnicoreagent",
        *_CREDENTIAL_PATTERNS,
    ]
    workspace = _workspace_ignore_pattern(cwd)
    if workspace:
        lines.append(workspace)
    return "\n".join(lines) + "\n"


def _install_line() -> str:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…