refactor: 调试提交
This commit is contained in:
9
zabbixagent.dockerfile
Normal file
9
zabbixagent.dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
FROM golang:1.23 AS builder
|
||||
WORKDIR /build
|
||||
COPY . ./
|
||||
RUN GOPROXY=https://goproxy.cn go mod download
|
||||
RUN PROFILE=dev CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -o /app
|
||||
|
||||
FROM zabbix/zabbix-agent2:ubuntu-7.0-latest
|
||||
COPY --from=builder /app /usr/sbin/zabbix-agent2-plugin/onvif
|
||||
RUN echo "Plugins.Onvif.System.Path=/usr/sbin/zabbix-agent2-plugin/onvif" >> /etc/zabbix/zabbix_agent2.d/plugins.d/onvif.conf
|
Reference in New Issue
Block a user