4 Star 2 Fork 0

openKylin/openkylin-docker-images

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 558 Bytes
一键复制 编辑 原始数据 按行查看 历史
张瑞安 提交于 2025-12-31 11:36 +08:00 . add filebeat
ARG BASE=openkylin/go:1.25.4-ok20
FROM ${BASE} AS builder
ARG VERSION=9.2.3
RUN apt update && \
apt install -y make g++ python3 wget && \
apt clean all && \
rm -rf /var/lib/apt/lists/*
WORKDIR /opt
RUN wget https://github.com/elastic/beats/archive/refs/tags/v${VERSION}.tar.gz \
&& tar -zxvf v${VERSION}.tar.gz \
&& rm -f v${VERSION}.tar.gz
WORKDIR /opt/beats-${VERSION}/filebeat
RUN make -j && mv filebeat /usr/local/bin/
FROM ${BASE}
COPY --from=builder /usr/local/bin/filebeat /usr/local/bin/filebeat
CMD ["filebeat", "--help"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openkylin/openkylin-docker-images.git
git@gitee.com:openkylin/openkylin-docker-images.git
openkylin
openkylin-docker-images
openkylin-docker-images
master

搜索帮助