Skip to content

Instantly share code, notes, and snippets.

@psrvere
Created August 17, 2026 20:23
Show Gist options
  • Select an option

  • Save psrvere/7435f980d841ea6d8c8f58482c41a5d0 to your computer and use it in GitHub Desktop.

Select an option

Save psrvere/7435f980d841ea6d8c8f58482c41a5d0 to your computer and use it in GitHub Desktop.
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest AS builder
RUN echo "build stage" > /tmp/marker
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
COPY --from=builder /tmp/marker /tmp/marker
RUN echo "final stage"
CMD ["cat", "/tmp/marker"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment