1 Star 3 Fork 2

gngpp/ninja

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
gngpp 提交于 2023-09-10 23:43 +08:00 . Project name changed to Ninja
FROM alpine:3.16.6 as builder
ARG VERSION
ARG TARGETPLATFORM
RUN if [ "${TARGETPLATFORM}" = "linux/arm64" ]; then \
echo "aarch64" > arch; \
echo "musl" > env; \
elif [ "${TARGETPLATFORM}" = "linux/amd64" ]; then \
echo "x86_64" > arch; \
echo "musl" > env; \
elif [ "${TARGETPLATFORM}" = "linux/arm/v7" ]; then \
echo "armv7" > arch; \
echo "musleabi" > env; \
elif [ "${TARGETPLATFORM}" = "linux/arm/v6" ]; then \
echo "arm" > arch; \
echo "musleabi" > env; \
fi
RUN apk update && apk add wget
RUN wget https://github.com/gngpp/ninja/releases/download/v${VERSION}/ninja-${VERSION}-$(cat arch)-unknown-linux-$(cat env).tar.gz
RUN tar -xvf ninja-${VERSION}-$(cat arch)-unknown-linux-$(cat env).tar.gz
FROM alpine:3.16.6
LABEL org.opencontainers.image.authors "gngpp <gngppz@gmail.com>"
LABEL org.opencontainers.image.source https://github.com/gngpp/ninja
LABEL name ninja
LABEL url https://github.com/gngpp/ninja
ENV LANG=C.UTF-8 DEBIAN_FRONTEND=noninteractive LANG=zh_CN.UTF-8 LANGUAGE=zh_CN.UTF-8 LC_ALL=C
COPY --from=builder /ninja /bin/ninja
ENTRYPOINT ["/bin/ninja"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Rust
1
https://gitee.com/gngpp/ninja.git
git@gitee.com:gngpp/ninja.git
gngpp
ninja
ninja
main

搜索帮助