blob: be3ed91d244a50d80fe818b8dfbdb95f74b11500 [file] [log] [blame]
FROM golang:1.11.2 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"]