chore: compose 改名文件

This commit is contained in:
2024-08-27 11:38:06 +08:00
parent a641d6846d
commit 2bd63388cc
2 changed files with 1 additions and 3 deletions

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM golang:1.23 AS builder
WORKDIR /build
COPY . ./
RUN GOPROXY=https://goproxy.cn go mod download
RUN CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -o out/app
FROM zabbix/zabbix-agent2:ubuntu-7.0-latest
COPY --from=builder /build/out/app /usr/sbin/zabbix-agent2-plugin/onvif-agent
RUN echo "Plugins.ONVIF.System.Path=/usr/sbin/zabbix-agent2-plugin/onvif-agent" >> /etc/zabbix/zabbix_agent2.d/plugins.d/onvif.conf