2 Star 0 Fork 17

JofDiamonds/Kmesh

forked from openEuler/Kmesh 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
kmesh-build.dockerfile 911 Bytes
一键复制 编辑 原始数据 按行查看 历史
JofDiamonds 提交于 2024-08-12 10:15 . add kmesh-build.dockerfile
#
# Dockerfile for building openEuler kmesh docker image.
#
# Usage:
# docker build -f kmesh-build.dockerfile -t ghcr.io/kmesh-net/kmesh-build-x86:v0.4.0 .
#
# base image
FROM openeuler/openeuler:23.09
# Setup Go
COPY --from=golang:1.22.1 /usr/local/go/ /usr/local/go/
RUN mkdir -p /go
ENV GOROOT /usr/local/go
ENV GOPATH /go
ENV PATH "${GOROOT}/bin:${GOPATH}/bin:${PATH}"
WORKDIR /prepare
COPY kmesh_compile_env_pre.sh ./
COPY go.mod ./
# install pkg dependencies
# RUN yum install -y kmod util-linux
# install package in online-compile image
RUN yum install -y kmod \
&& yum install -y util-linux
RUN go env -w GO111MODULE=on \
&& go env -w GOPROXY=http://mirrors.tools.huawei.com/goproxy \
&& export GONOSUMDB=* \
&& go mod download \
&& go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.32.0
RUN bash kmesh_compile_env_pre.sh
# container work directory
WORKDIR /kmesh
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kwb0523/Kmesh.git
git@gitee.com:kwb0523/Kmesh.git
kwb0523
Kmesh
Kmesh
docs

搜索帮助