mirror of
https://github.com/kastenhq/kubestr.git
synced 2024-12-15 17:50:57 +00:00
b09c72a366
* first fio changes * small fixes * newline
29 lines
388 B
Docker
29 lines
388 B
Docker
FROM golang:alpine3.12 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 get -ldflags="-w -s" .
|
|
|
|
FROM alpine:3.12
|
|
|
|
RUN apk --no-cache add fio
|
|
|
|
COPY --from=builder /dist/kubestr /
|
|
|
|
COPY ./pkg/fio/fio.sh .
|
|
RUN chmod +x ./fio.sh
|
|
|
|
ENTRYPOINT ["/kubestr"]
|