mirror of
https://github.com/kastenhq/kubestr.git
synced 2024-12-14 11:57:56 +00:00
18 lines
265 B
Docker
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"]
|