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

19 lines
265 B
Text
Raw Normal View History

2020-10-15 01:17:09 +00:00
FROM golang:alpine AS builder
2020-10-14 23:35:59 +00:00
WORKDIR /app
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
2020-10-15 01:17:09 +00:00
RUN GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /bin/kubestr
FROM scratch
COPY --from=builder /bin/kubestr /bin/kubestr
2020-10-14 23:35:59 +00:00
2020-10-15 01:17:09 +00:00
ENTRYPOINT ["/bin/kubestr"]