Skip to content
Branch: master
Find file Copy path
Find file Copy path
15 lines (11 sloc) 365 Bytes
FROM golang:1.12.1 AS build
WORKDIR /contour
COPY go.mod ./
RUN go mod download
COPY cmd cmd
COPY internal internal
COPY apis apis
RUN CGO_ENABLED=0 GOOS=linux GOFLAGS=-ldflags=-w go build -o /go/bin/contour -ldflags=-s -v
FROM scratch AS final
COPY --from=build /go/bin/contour /bin/contour
You can’t perform that action at this time.