Files
goldpinger/Dockerfile
Tyler Lloyd f76b552c62 reverting to go 1.14
Signed-off-by: Tyler Lloyd <Tyler.Lloyd@microsoft.com>
2021-11-03 16:58:38 -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"]