From 3980e9535818c015e4d06a720231dee26f721456 Mon Sep 17 00:00:00 2001 From: Christian Steinle Date: Wed, 6 Jul 2022 13:10:24 +0200 Subject: [PATCH] Try to exchange deprecated command. --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 15a6343..3ce6aa3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,7 @@ FROM golang:alpine AS build MAINTAINER chris RUN apk add git --no-cache && \ - go get -u github.com/mdlayher/apcupsd_exporter && \ - go install ./... + go install github.com/mdlayher/apcupsd_exporter@latest FROM alpine:latest