d783d71f05
Relates-To: #341 Change-Id: I65a5b8cf3bcf94321fc02f240b1d8075bca45c0c
12 lines
320 B
Docker
12 lines
320 B
Docker
FROM golang:1.13-stretch as builder
|
|
ENV CGO_ENABLED=0
|
|
WORKDIR /go/src/
|
|
COPY image/go.mod .
|
|
RUN go mod download
|
|
COPY main.go .
|
|
RUN go build -v -o /usr/local/bin/config-function ./
|
|
|
|
FROM alpine:latest
|
|
COPY --from=builder /usr/local/bin/config-function /usr/local/bin/config-function
|
|
CMD ["/usr/local/bin/config-function"]
|