Use directory for go build.
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
FROM golang:alpine AS build
|
FROM golang:alpine AS build
|
||||||
MAINTAINER chris
|
MAINTAINER chris
|
||||||
RUN apk add git --no-cache && \
|
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
|
go build -o /go/bin/apcupsd_exporter
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user