1 Star 0 Fork 16

Tongyx/safeguard

forked from openEuler/safeguard 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 962 Bytes
一键复制 编辑 原始数据 按行查看 历史
Tongyx 提交于 2023-09-27 11:01 . first commit
FROM ubuntu:21.10 as builder
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get install -y \
wget \
build-essential \
libbpf-dev \
clang \
gcc-multilib \
llvm \
zlib1g-dev \
libelf-dev \
linux-tools-generic \
linux-tools-common \
linux-headers-$(uname -r) \
linux-tools-$(uname -r)
RUN wget https://go.dev/dl/go1.17.5.linux-amd64.tar.gz -O /tmp/go1.17.5.linux-amd64.tar.gz
RUN rm -rf /usr/local/go && \
tar -C /usr/local -xzf /tmp/go1.17.5.linux-amd64.tar.gz && \
ln -sf /usr/local/go/bin/go /usr/bin/go
RUN mkdir -p /go/{bin,src}
FROM builder AS build
ENV GOPATH=/go
WORKDIR /go/src/github.com/mrtc0/bouheki
COPY . ./
RUN make build
FROM ubuntu:21.10
RUN apt-get update
RUN apt-get install -y libelf-dev && apt-get clean && rm -rf /var/lib/apt/lists/
COPY --from=build /go/src/github.com/mrtc0/bouheki/build/bouheki /usr/local/bin/bouheki
RUN chmod +x /usr/local/bin/bouheki
ENTRYPOINT ["/usr/local/bin/bouheki"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tongyx633/safeguard.git
git@gitee.com:tongyx633/safeguard.git
tongyx633
safeguard
safeguard
master

搜索帮助