github.com/GGP1/kure@v0.8.4/Dockerfile (about)

     1  FROM golang:1.22-alpine3.19 as builder
     2  
     3  WORKDIR /kure
     4  
     5  COPY go.mod .
     6  
     7  RUN go mod download && go mod verify
     8  
     9  RUN apk add --update --no-cache git
    10  
    11  COPY . .
    12  
    13  RUN CGO_ENABLED=0 go install -ldflags="-s -w" .
    14  
    15  # ---------------------------------------------
    16  
    17  FROM alpine:3.19
    18  
    19  RUN apk add --update --no-cache vim
    20  
    21  COPY --from=builder /go/bin/kure /usr/bin/
    22  
    23  CMD ["/usr/bin/kure"]