1
0
Fork 0
mirror of https://github.com/kastenhq/kubestr.git synced 2024-12-14 11:57:56 +00:00
kastenhq-kubestr/Dockerfile
2020-10-14 15:17:09 -10:00

18 lines
265 B
Docker

FROM golang:alpine AS builder
WORKDIR /app
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /bin/kubestr
FROM scratch
COPY --from=builder /bin/kubestr /bin/kubestr
ENTRYPOINT ["/bin/kubestr"]