1
0
Fork 0
mirror of https://github.com/kastenhq/kubestr.git synced 2024-12-14 11:57:56 +00:00
kastenhq-kubestr/Dockerfile
Pavan Navarathna 7446f8cc47
Update Kanister to remove vulnerable dependencies (#110)
* Update go to 1.17

* Update Kanister to remove vulnerable dependencies

* Resolve conflicts

* Update actions to use go 1.17

* Update Alpine image

* 1st attempt to fix docker build action

* 2nd attempt to fix Docker build

* Remove patch version
2022-07-13 09:14:49 -10:00

26 lines
349 B
Docker

FROM golang:1.17.12-alpine3.16 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.16
RUN apk --no-cache add fio
COPY --from=builder /dist/kubestr /
ENTRYPOINT ["/kubestr"]