1
0
Fork 0
mirror of https://github.com/kastenhq/kubestr.git synced 2024-12-14 11:57:56 +00:00
kastenhq-kubestr/Dockerfile
Abhijit Mukherjee 7a9f6b57a7
Upgrade k8s version to 0.29.0 (#213)
* bumped up k8s.io dependencies
* Update kanister build

---------

Signed-off-by: Abhijit M <abhijit.mukherjee@kasten.io>
2024-02-01 23:09:32 -08:00

26 lines
348 B
Docker

FROM golang:1.21-bullseye AS builder
ENV GO111MODULE=on \
CGO_ENABLED=0 \
GOOS=linux \
GOARCH=amd64 \
GOBIN=/dist
WORKDIR /app
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN go install -ldflags="-w -s" .
FROM alpine:3.19
RUN apk --no-cache add fio
COPY --from=builder /dist/kubestr /
ENTRYPOINT ["/kubestr"]