diff --git a/Dockerfile b/Dockerfile index d993330..bf86cc6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ FROM golang:alpine AS build MAINTAINER chris RUN apk add git --no-cache && \ - git clone https://github.com/mdlayher/apcupsd_exporter && \ + git clone https://github.com/mdlayher/apcupsd_exporter /tmp/build && \ + cd /tmp/build && \ go build -o /go/bin/apcupsd_exporter FROM alpine:latest