from registry.local/rgbarm64lib:latest as builder workdir /usr/src/app/work COPY . . RUN go mod tidy RUN go build . FROM ALPINE:latest COPY --from=builder /usr/src/app/work/rgb /rgb