Skip to content

Cache download-files in Dockerfile by using the module-level command#79

Open
aryeila wants to merge 1 commit into
mainfrom
chana/standalone-download-files
Open

Cache download-files in Dockerfile by using the module-level command#79
aryeila wants to merge 1 commit into
mainfrom
chana/standalone-download-files

Conversation

@aryeila
Copy link
Copy Markdown
Contributor

@aryeila aryeila commented May 27, 2026

Overview

Update the Dockerfile to use the module-level download-files command introduced in livekit-agents@1.5.10. The download step now runs before COPY . ., so the layer caches across code-only changes — editing your agent no longer triggers a re-download of plugin model files.

Change

RUN uv run "src/agent.py" download-files (after COPY . .) → RUN uv run --module livekit.agents download-files (before COPY . .).

The new command discovers installed livekit-plugins-* packages and runs their download_files() step without loading your agent code. That's what allows the step to move ahead of the source copy.

livekit-agents is pinned to 1.5.12 in pyproject.toml, which is past the 1.5.10 threshold for the module-level command.

Related PRs

This is part of a coordinated rollout across four repos. Each PR updates one slice of the same migration.

Upstream SDK changes:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant