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

27 lines
348 B
Text
Raw Permalink Normal View History

FROM golang:1.22-bullseye AS builder
2020-10-14 23:35:59 +00:00
ENV GO111MODULE=on \
CGO_ENABLED=0 \
GOOS=linux \
GOARCH=amd64 \
GOBIN=/dist
2020-10-14 23:35:59 +00:00
WORKDIR /app
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN go install -ldflags="-w -s" .
2020-10-15 01:17:09 +00:00
FROM alpine:3.19
RUN apk --no-cache add fio
2020-10-15 01:17:09 +00:00
COPY --from=builder /dist/kubestr /
2020-10-14 23:35:59 +00:00
ENTRYPOINT ["/kubestr"]