kubesphere.io/s2irun@v3.2.1+incompatible/Dockerfile (about)

     1  FROM golang:1.11-alpine as builder
     2  
     3  WORKDIR /go/src/github.com/kubesphere/s2irun
     4  COPY cmd/ cmd/
     5  COPY pkg/ pkg/
     6  COPY vendor/ vendor/
     7  
     8  # Build
     9  RUN CGO_ENABLED=0 GOOS=linux go build -a -o builder github.com/kubesphere/s2irun/cmd
    10  
    11  FROM alpine:3.11
    12  
    13  WORKDIR /root/
    14  
    15  RUN apk update && apk upgrade && \
    16      apk add --no-cache bash git openssh
    17      
    18  ENV S2I_CONFIG_PATH=/root/data/config.json
    19  COPY --from=builder /go/src/github.com/kubesphere/s2irun/builder .
    20  CMD ["./builder", "-v=4", "-logtostderr=true"]
    21  
    22  
    23  
    24  
    25