Skip to content

Instantly share code, notes, and snippets.

FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
RUN echo "=== BUILD2324: attempting to read mounted secret ===" && cat /etc/npm/.npmrc && echo "=== BUILD2324: READ OK ==="
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest AS builder
RUN echo "build stage BUILD-2261" > /tmp/marker
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
COPY --from=builder /tmp/marker /tmp/marker
CMD ["cat", "/tmp/marker"]
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"]
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
RUN echo "build-2255 label test" > /tmp/marker
CMD ["cat", "/tmp/marker"]
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"]
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
RUN echo "build-2267 imageLabels test" > /tmp/marker
CMD ["cat", "/tmp/marker"]
#!/bin/bash
echo "CUSTOM-SCRIPTS-MARKER: BUILD-1641 custom assemble invoked"
exec /usr/libexec/s2i/assemble