blob: 461c1fb70a24235a0257188e4a2e990c2b41e6ff [file] [log] [blame]
FROM golang:1.12 as builder
COPY . /go/src/github.com/swisstxt/cloudstack-cloud-controller-manager
WORKDIR /go/src/github.com/swisstxt/cloudstack-cloud-controller-manager
RUN make clean && CGO_ENABLED=0 GOOS=linux make
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /go/src/github.com/swisstxt/cloudstack-cloud-controller-manager/cloudstack-ccm .
CMD ["./cloudstack-ccm"]