vctl-docs
vctl-docs copied to clipboard
`vctl build` performance issue.
I am doing a multi-stage build, It always stuck at
INFO[0215] Unpacking rootfs as cmd ... requires it.
step for a very long time for each build stage.
It does succeed tho? Is the Dockerfile something we can take a look at, or at least have an example of?
It works for some build stages, but extremely slow, and finally it leads to issue #22.
# Build stage 1
FROM registry/sdk-image:latest AS builder // Image with LLVM project in.
RUN go get github.com/brutella/can
RUN mkdir -p /go/src/example.com/compile-farm
WORKDIR /go/src/example.com/compile-farm
COPY . .
RUN go install example.com/compile-farm
#Build stage 2
FROM registry/compile-farm-runner:latest
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
WORKDIR /usr/local/bin
COPY --from=builder /go/bin/compile-farm .
COPY --from=builder /go/src/example.com/compile-farm/build-*.sh /usr/local/bin/
CMD ["compile-farm", "-server"]