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