Skip to content

Cache download-files in Dockerfile and simplify the download-files script#49

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

Cache download-files in Dockerfile and simplify the download-files script#49
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

Two related cleanups around download-files:

  1. Move the Dockerfile download-files step before COPY . . so the download layer caches across code-only changes — editing your agent no longer triggers a re-download of plugin model files.
  2. Drop the redundant pnpm run build && prefix from the download-files script. The standalone npx livekit-agents download-files command (already referenced by this script) discovers installed @livekit/agents-plugin-* packages without loading your agent code, so the build step before it was a no-op.

Changes

  • DockerfileRUN pnpm download-files moved before COPY . . (was previously between pnpm build and pnpm prune --prod).
  • package.json"download-files": "pnpm run build && npx livekit-agents download-files""download-files": "npx livekit-agents download-files".

@livekit/agents is pinned at ^1.4.3, which is the version that introduced the standalone livekit-agents download-files CLI.

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