Skip to content

Commit

Permalink
docker: add runtime dependencies to Dockerfile.rhel-ubi
Browse files Browse the repository at this point in the history
Signed-off-by: Camilla Conte <[email protected]>
  • Loading branch information
spotlesstofu authored and Xynnn007 committed Jun 19, 2024
1 parent f76e975 commit 48c5b98
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions kbs/docker/Dockerfile.rhel-ubi
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ cargo install --locked --root /usr/local/ --path kbs/src/kbs --no-default-featur
mkdir -p /root/trustee/lib64 && \
ldd /usr/local/bin/kbs | sed 's@.*\s/@/@' | sed 's/\s.*//' | xargs -I {} cp {} /root/trustee/lib64

# Package minimal image.
FROM registry.access.redhat.com/ubi9-micro
# Package UBI image.
FROM registry.access.redhat.com/ubi9

# Install runtime dependencies from Intel repo.
COPY --from=builder /root/sgx_rpm_local_repo /root/sgx_rpm_local_repo
RUN dnf -y install --nogpgcheck --setopt=install_weak_deps=0 --repofrompath "sgx,file:///root/sgx_rpm_local_repo" \
libsgx-dcap-default-qpl libsgx-dcap-quote-verify && \
rm -rf /root/sgx_rpm_local_repo

COPY --from=builder /usr/local/bin/kbs /usr/local/bin/kbs
COPY --from=builder /root/trustee/lib64/* /lib64/

0 comments on commit 48c5b98

Please sign in to comment.