Skip to content

Commit e7ad0b4

Browse files
Merge pull request #84 from CleverCloud/devel/fdubois/chore/dockerfile
Update Dockerfile to use redhat/ubi9 image
2 parents d16cef3 + 168c4d5 commit e7ad0b4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
FROM fedora:latest AS builder
1+
FROM redhat/ubi9:latest AS builder
22

33
WORKDIR /usr/src/clever-operator
44
ADD src src
55
ADD Cargo.toml .
66
ADD Cargo.lock .
77

8-
RUN dnf update -y && dnf install cargo openssl-devel -y
9-
RUN cargo build --release
8+
RUN dnf update -y && dnf install gcc openssl-devel -y
9+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --verbose -y \
10+
&& export PATH="$HOME/.cargo/bin:$PATH" \
11+
&& cargo build --release
1012

11-
FROM fedora:latest
13+
FROM redhat/ubi9:latest
1214

1315
MAINTAINER Florentin Dubois <florentin.dubois@clever-cloud.com>
1416
LABEL name="clever-operator" \

0 commit comments

Comments
 (0)