github.com/midokura/kubeedge@v1.2.0-mido.0/build/cloud/Dockerfile (about) 1 FROM golang:1.12-alpine3.10 AS builder 2 3 COPY . /go/src/github.com/kubeedge/kubeedge 4 5 RUN CGO_ENABLED=0 go build -v -o /usr/local/bin/cloudcore -ldflags="-w -s" \ 6 github.com/kubeedge/kubeedge/cloud/cmd/cloudcore 7 8 9 FROM alpine:3.9 10 11 ENV GOARCHAIUS_CONFIG_PATH /etc/kubeedge/cloud 12 13 VOLUME ["/etc/kubeedge/certs", "/etc/kubeedge/cloud/conf"] 14 15 COPY --from=builder /usr/local/bin/cloudcore /usr/local/bin/cloudcore 16 17 ENTRYPOINT ["cloudcore"]