-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathContainerfile
More file actions
36 lines (23 loc) · 874 Bytes
/
Containerfile
File metadata and controls
36 lines (23 loc) · 874 Bytes
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
31
32
33
34
35
36
FROM registry.access.redhat.com/ubi9/ubi:latest AS builder
RUN dnf install --setop install_weak_deps=false --nodocs -y git python gcc g++ cmake rust cargo ninja-build openssl-devel xz
RUN mkdir /build
RUN mkdir /install
RUN mkdir /licenses
COPY build.sh /build/
WORKDIR /build
RUN ./build.sh 1.89.0
RUN ./build.sh 1.89.0 1.90.0
RUN ./build.sh 1.90.0 1.91.0
RUN ./build.sh 1.91.0 1.92.0
RUN ./build.sh 1.92.0 1.93.1
RUN ./build.sh 1.93.1 1.94.1
FROM registry.access.redhat.com/ubi9/ubi:latest
ARG RUST_VERSION=1.94.1
LABEL konflux.additional-tags="${RUST_VERSION}"
LABEL version="${RUST_VERSION}"
RUN dnf install -y git python gcc g++ cmake ninja-build openssl-devel npm xz
RUN mkdir /usr/local/lib/rust
COPY --from=builder /install/${RUST_VERSION} /usr/local/share/rust
COPY --from=builder /licenses /licenses
ENV PATH=$PATH:/usr/local/share/rust/bin
USER 1001