From e8251b25ecd8c7bdf0d04f7cff82a5dee76fa0f5 Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Wed, 28 Aug 2019 11:11:49 -0700 Subject: [PATCH] Fix multistage build --- Dockerfile | 6 +++--- VERSION | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) delete mode 100644 VERSION diff --git a/Dockerfile b/Dockerfile index 2730829..93bb47e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM golang:alpine AS builder -WORKDIR /go/src/github.com/brandond/syslog_ng_exporter -COPY *.go Makefile vendor /go/src/github.com/brandond/syslog_ng_exporter/ -RUN apk --no-cache add curl git make +RUN apk --no-cache add alpine-sdk +COPY ./ /go/src/github.com/brandond/syslog_ng_exporter/ +WORKDIR /go/src/github.com/brandond/syslog_ng_exporter/ RUN make FROM quay.io/prometheus/busybox:latest diff --git a/VERSION b/VERSION deleted file mode 100644 index 6e8bf73..0000000 --- a/VERSION +++ /dev/null @@ -1 +0,0 @@ -0.1.0