Multi-staged UBI micro build
The snippet can be accessed without any authentication.
Authored by
Sheogorath
Edited
Dockerfile 340 B
FROM registry.access.redhat.com/ubi9/ubi:9.4 AS builder
RUN dnf install \
--installroot /mnt \
--releasever 9 \
--setopt install_weak_deps=false \
--nodocs -y \
httpd
RUN dnf clean all \
--installroot /mnt
FROM registry.access.redhat.com/ubi9/ubi-micro:9.4
COPY --from=builder /mnt /
ENTRYPOINT ["httpd"]
CMD ["-X"]
Please register or sign in to comment