quarkusio / quarkus-buildpacks

9 stars 3 forks source link

/usr/bin/sh: rsync: command not found #12

Open carljmosca opened 2 years ago

carljmosca commented 2 years ago

I've got a Quarkus project for which I am trying to build a native image. The project includes a React client which is failing with the above error.

carljmosca commented 2 years ago

adding rsync to the native image seems to address this ok but it seems a bit messy:

this is the diff

`--- a/stacks/native/build/Dockerfile +++ b/stacks/native/build/Dockerfile @@ -11,6 +11,8 @@ ENV CNB_GROUP_ID=${cnb_gid}

LABEL io.buildpacks.stack.id=${stack_id}

+USER root +RUN yum install rsync -y USER 1001

CMD [ "/bin/bash" ]`