mirror of
https://github.com/bloomberg/goldpinger.git
synced 2026-05-06 00:36:42 +00:00
24 lines
425 B
Docker
24 lines
425 B
Docker
FROM golang:1.14-alpine as builder
|
|
|
|
# Install our build tools
|
|
|
|
RUN apk add --update git make bash
|
|
|
|
# Get dependencies
|
|
|
|
WORKDIR /w
|
|
COPY go.mod go.sum /w/
|
|
RUN go mod download
|
|
|
|
# Build goldpinger
|
|
|
|
COPY . ./
|
|
RUN make bin/goldpinger
|
|
|
|
# Build the asset container, copy over goldpinger
|
|
|
|
FROM scratch
|
|
COPY --from=builder /w/bin/goldpinger /goldpinger
|
|
COPY ./static /static
|
|
ENTRYPOINT ["/goldpinger", "--static-file-path", "/static"]
|