Skip to content

fix: Dockerfile heredoc compatibility with Podman/Buildah#113

Open
dspi wants to merge 1 commit into
cjermain:mainfrom
dspi-pi-agent:feature/podman-compatibility
Open

fix: Dockerfile heredoc compatibility with Podman/Buildah#113
dspi wants to merge 1 commit into
cjermain:mainfrom
dspi-pi-agent:feature/podman-compatibility

Conversation

@dspi

@dspi dspi commented Jul 1, 2026

Copy link
Copy Markdown

mise run pi:build was failing under Podman because Buildah's native Containerfile parser doesn't handle multi-line RUN <<'EOF' ... EOF heredoc blocks as a single shell invocation.

Dockerfile changes:

  • mise and uv install steps: heredoc replaced with an equivalent &&-chained RUN
  • entrypoint.sh: extracted from inline heredoc into a standalone file

CI changes:

  • Added independent build/test pipeline pairs for both Docker and Podman, since podman build was never exercised in CI before.

Buildah's Containerfile parser doesn't handle multi-line RUN heredocs as a single shell invocation, breaking . Replaced with an &&-chained RUN (mise install) and a standalone COPY'd file (entrypoint.sh). Also adds Podman-native build-podman/test-podman CI jobs, since existing CI never ran  itself.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant