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.