Skip to content
Snippets Groups Projects

Multi-staged UBI micro build

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    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"]
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment