mirror of
https://github.com/bloomberg/goldpinger.git
synced 2026-08-28 15:57:18 +00:00
Remove unnecessary pkg installation, add static
- Remove curl installation - Change dep installation from 'curl' to 'go get' - Copy static content to asset container Signed-off-by: Michiel Kalkman <michiel@nosuchtype.com>
This commit is contained in:
+4
-2
@@ -2,8 +2,8 @@ FROM golang:1.11-alpine as builder
|
||||
|
||||
# Install our build tools
|
||||
|
||||
RUN apk add --update git make curl bash
|
||||
RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
||||
RUN apk add --update git make
|
||||
RUN go get -u github.com/golang/dep/cmd/dep
|
||||
|
||||
# Get sources
|
||||
|
||||
@@ -16,11 +16,13 @@ RUN make vendor
|
||||
|
||||
# Build goldpinger
|
||||
|
||||
RUN apk add bash
|
||||
RUN make bin/goldpinger
|
||||
|
||||
# Build the asset container, copy over goldpinger
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /go/src/github.com/bloomberg/goldpinger/bin/goldpinger /goldpinger
|
||||
COPY ./static /static
|
||||
ENTRYPOINT ["/goldpinger", "--static-file-path", "/static"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user