78 Star 110 Fork 71

openEuler / nestos-installer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 993 Bytes
一键复制 编辑 原始数据 按行查看 历史
duyiwei 提交于 2024-01-23 17:27 . upgrade version to 0.18.0
#update for nestos later
FROM registry.fedoraproject.org/fedora:38 AS builder
RUN dnf install -y cargo git-core libzstd-devel openssl-devel xz-devel
WORKDIR /build
COPY Cargo.* ./
COPY src src/
# Debug symbols are nice but they're not 100+ MB of nice
RUN sed -i 's/^debug = true$/debug = false/' Cargo.toml
# aarch64 release builds running in emulation take too long and time out the
# GitHub Action. Disable optimization.
RUN if [ $(uname -p) != x86_64 ]; then sed -i "s/^debug = false$/debug = false\nopt-level = 0/" Cargo.toml; fi
# Avoid OOM on emulated arm64
# https://github.com/rust-lang/cargo/issues/10583
RUN mkdir -p .cargo && echo -e '[net]\ngit-fetch-with-cli = true' > .cargo/config.toml
RUN cargo build --release
FROM registry.fedoraproject.org/fedora:38
RUN dnf install -y /usr/bin/gpg /usr/sbin/kpartx /usr/bin/lsblk \
/usr/sbin/udevadm && \
dnf clean all
COPY --from=builder /build/target/release/coreos-installer /usr/sbin
ENTRYPOINT ["/usr/sbin/coreos-installer"]
1
https://gitee.com/openeuler/nestos-installer.git
git@gitee.com:openeuler/nestos-installer.git
openeuler
nestos-installer
nestos-installer
master

搜索帮助