livekit-cli icon indicating copy to clipboard operation
livekit-cli copied to clipboard

Dockerfile generated by `lk agent create` uses Windows path separators

Open gaureshpai opened this issue 10 months ago • 0 comments

The lk agent create command generates a Dockerfile that uses Windows-style path separators (\) in file paths (e.g. src\agent.py). Since the base image is Linux-based (Debian), these paths are invalid and cause the container to fail at runtime because the files cannot be located.

Paths in the generated Dockerfile should be normalized to use / to ensure compatibility with Linux containers, regardless of the host OS.

Example (generated Dockerfile snippet):

RUN uv run "src\agent.py" download-files
CMD ["uv", "run", "src\agent.py", "start"]

Expected behavior:

RUN uv run src/agent.py download-files
CMD ["uv", "run", "src/agent.py", "start"]

Notes:

  • This appears when running the CLI on Windows in VS Code Terminal.
  • The Docker image itself is Linux-based, so / should always be used.

gaureshpai avatar Jan 30 '26 14:01 gaureshpai