Skip to content

Dockerfile symbols should expose instructions, stages, and images explicitly #3483

Description

@Widthdom

Problem

Dockerfile symbol output currently maps Dockerfile instructions to generic symbol kinds that are not very useful for audit workflows.

Evidence

cdidx symbols --lang dockerfile --json reports:

  • FROM ... AS build as function/class symbols.
  • WORKDIR/COPY as generic property symbols.

This makes it harder to search and rank Docker-specific concerns like base images, build stages, copied paths, and runtime instructions.

Requested behavior

Model Dockerfile symbols with Docker-specific kinds or metadata, such as stage, base_image, copy, workdir, user, run, and stage dependencies.

Labels

enhancement, codex, dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    codexdependenciesPull requests that update a dependency fileenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions