1 Star 0 Fork 69

刘雄/nestos-installer

forked from openEuler/nestos-installer 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 993 Bytes
一键复制 编辑 原始数据 按行查看 历史
duyiwei 提交于 2022-11-14 19:43 . upgrade to version 0.16.0
#update for nestos later
FROM registry.fedoraproject.org/fedora:36 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:36
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"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liuxiongkylin/nestos-installer.git
git@gitee.com:liuxiongkylin/nestos-installer.git
liuxiongkylin
nestos-installer
nestos-installer
master

搜索帮助