Inspect Dockerfile
inspect_dockerfileParse a Dockerfile to extract base images, exposed ports, workdir, user, entrypoint, env keys, and healthcheck, then reveal the listening port for Kubernetes migration.
Instructions
Parse a Dockerfile into the facts a migration needs: base images and build stages, EXPOSE ports, WORKDIR, USER, ENTRYPOINT/CMD, declared ENV keys and the HEALTHCHECK. Use it to learn which port an image actually listens on.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cmd | No | ||
| path | Yes | ||
| user | No | ||
| notes | No | ||
| stages | No | ||
| volumes | No | ||
| workdir | No | ||
| env_keys | No | ||
| build_args | No | ||
| entrypoint | No | ||
| healthcheck | No | ||
| multi_stage | No | ||
| exposed_ports | No | ||
| final_base_image | No |