Skip to content

Dockerfile generated by lk agent create uses Windows path separators #761

@gaureshpai

Description

@gaureshpai

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions