-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.rockylinux8
More file actions
43 lines (32 loc) · 970 Bytes
/
Dockerfile.rockylinux8
File metadata and controls
43 lines (32 loc) · 970 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
37
38
39
40
41
ARG RUST_VERSION=1.93.0
FROM rust:${RUST_VERSION} AS rust-base
FROM dalibo/buildpack:rockylinux8
ARG PGRX_VERSION=0.18.0
# Copy Rust toolchain from official image
COPY --from=rust-base /usr/local/cargo /usr/local/cargo
COPY --from=rust-base /usr/local/rustup /usr/local/rustup
# Copy nfpm binary
COPY --from=goreleaser/nfpm:latest /usr/bin/nfpm /usr/bin/nfpm
# Set environment variables for Rust
ENV CARGO_HOME=/usr/local/cargo
ENV RUSTUP_HOME=/usr/local/rustup
ENV PATH=/usr/local/cargo/bin:$PATH
RUN dnf install -y \
cmake \
git \
clang \
bison \
bison-devel \
flex \
libicu-devel \
readline-devel \
zlib-devel \
openssl-devel \
ccache \
gettext \
&& dnf clean all \
&& rm -rf /var/cache/yum
RUN rustup self update \
&& rustup component add clippy llvm-tools-preview \
&& cargo install grcov cargo-cyclonedx uv \
&& cargo install --locked --version "${PGRX_VERSION}" cargo-pgrx