forked from awslabs/tough
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile.rh
30 lines (20 loc) · 1.08 KB
/
Dockerfile.rh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM registry.access.redhat.com/ubi9/ubi:latest as builder
USER root
ARG RUST_VERSION="1.79.0"
RUN dnf install -y gcc openssl openssl-devel cmake gcc-c++ git curl-minimal unzip cyrus-sasl-devel
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs/ | sh -s -- --default-toolchain=${RUST_VERSION} -y
ENV PATH "$PATH:/root/.cargo/bin"
RUN mkdir /tmp/tuftool
COPY . /tmp/tuftool
RUN cd /tmp/tuftool && cargo build --release
FROM registry.access.redhat.com/ubi9/ubi:latest as deploy
COPY --from=builder /tmp/tuftool/target/release/tuftool /usr/bin/
ENTRYPOINT ["/usr/bin/tuftool"]
LABEL description ="Tuftool is a Rust command-line utility for generating and signing TUF repositories"
LABEL io.k8s.description="Tuftool is a Rust command-line utility for generating and signing TUF repositories"
LABEL io.k8s.display-name="Tuftool container image for Red Hat Trusted Artifact Signer"
LABEL io.openshift.tags="Tuftool Trusted Artifact Signer"
LABEL summary="Provides the Tuftool binary for generating and signing TUF repositories"
LABEL com.redhat.component="tuftool"
LABEL name="tuftool"
#