Files
hg612-exporter/Dockerfile

10 lines
228 B
Docker

FROM golang:1.17.4-alpine3.15 as build
WORKDIR /build
COPY . .
RUN go get -d -v .
RUN go build -v -o hg612-exporter .
FROM alpine:3.15.0
WORKDIR /service
COPY --from=build /build/hg612-exporter .
ENTRYPOINT ["./hg612-exporter"]