nddipiazza opened a new pull request, #2782:
URL: https://github.com/apache/tika/pull/2782

   ## Summary
   
   The `chmod +x` on `start-tika-grpc.sh` was placed **after** the `USER 
$UID_GID` directive, causing it to run as the non-root user — which cannot 
change permissions on a root-owned file. This silently passed locally (the file 
already had the execute bit on the dev filesystem) but failed in CI where the 
build context is clean.
   
   ## Root Cause
   
   ```dockerfile
   USER $UID_GID          # switch to non-root
   ...
   RUN chmod +x "/tika/bin/start-tika-grpc.sh"  # ❌ non-root can't chmod 
root-owned file
   ```
   
   ## Fix
   
   Move the `chmod` to before the `USER` switch so it runs as root:
   
   ```dockerfile
   RUN chmod +x "/tika/bin/start-tika-grpc.sh"  # ✅ runs as root
   USER $UID_GID
   ```
   
   ## Critical Files
   
   - `tika-grpc/docker-build/Dockerfile`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to