Try to exchange deprecated command.

This commit is contained in:
2022-07-06 13:31:26 +02:00
parent 9aa1945099
commit 0aae5afc2a

View File

@@ -1,7 +1,8 @@
FROM golang:alpine AS build
MAINTAINER chris
RUN apk add git --no-cache && \
go build -x github.com/mdlayher/apcupsd_exporter@latest -o /go/bin/apcupsd_exporter
git clone github.com/mdlayher/apcupsd_exporter
go build -o /go/bin/apcupsd_exporter
FROM alpine:latest