0 Star 0 Fork 1

lipengfei/gpushare-device-plugin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 686 Bytes
一键复制 编辑 原始数据 按行查看 历史
happy2048 提交于 2020-02-24 11:00 . update base image (#20)
FROM golang:1.10-stretch as build
WORKDIR /go/src/github.com/AliyunContainerService/gpushare-device-plugin
COPY . .
RUN export CGO_LDFLAGS_ALLOW='-Wl,--unresolved-symbols=ignore-in-object-files' && \
go build -ldflags="-s -w" -o /go/bin/gpushare-device-plugin-v2 cmd/nvidia/main.go
RUN go build -o /go/bin/kubectl-inspect-gpushare-v2 cmd/inspect/*.go
FROM debian:bullseye-slim
ENV NVIDIA_VISIBLE_DEVICES=all
ENV NVIDIA_DRIVER_CAPABILITIES=utility
COPY --from=build /go/bin/gpushare-device-plugin-v2 /usr/bin/gpushare-device-plugin-v2
COPY --from=build /go/bin/kubectl-inspect-gpushare-v2 /usr/bin/kubectl-inspect-gpushare-v2
CMD ["gpushare-device-plugin-v2","-logtostderr"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xingluzhe/gpushare-device-plugin.git
git@gitee.com:xingluzhe/gpushare-device-plugin.git
xingluzhe
gpushare-device-plugin
gpushare-device-plugin
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385