Files
goldpinger/Dockerfile
2020-04-01 20:26:03 -04:00

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"]