# 与 105(Alibaba Cloud Linux 3 / glibc 2.32)兼容的 goosed 构建镜像。 # 勿用 debian bookworm:其 glibc/libstdc++ 过新,产物无法在 105 上运行。 FROM almalinux:8 RUN dnf install -y epel-release && \ /usr/bin/crb enable && \ dnf install -y \ gcc gcc-c++ make cmake \ pkgconf-pkg-config \ openssl-devel \ dbus-devel \ clang llvm \ protobuf protobuf-compiler \ git curl ca-certificates \ && dnf clean all ARG RUST_VERSION=1.92.0 RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \ sh -s -- -y --default-toolchain "${RUST_VERSION}" --profile minimal ENV PATH="/root/.cargo/bin:${PATH}" RUN rustc --version ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse WORKDIR /build