← Back to PRs

#11576: Update Dockerfile, change file ownership during copy to prevent long …

by fastali open 2026-02-08 01:04 View on GitHub →
docker stale
…build time. The build time of the image was taking a very longtime on "chown" of "app" folder. applying this during copy phase saves a lot of time. <!-- greptile_comment --> <h2>Greptile Overview</h2> <h3>Greptile Summary</h3> This PR updates the `Dockerfile` to apply `--chown=node:node` during the full source `COPY`, and removes the subsequent `RUN chown -R node:node /app` step. Functionally, it keeps the image running as the non-root `node` user while avoiding an expensive recursive `chown` layer that was slowing builds. <h3>Confidence Score: 5/5</h3> - This PR is safe to merge with minimal risk. - The change is narrowly scoped to the Docker build (replacing a post-copy recursive chown with `COPY --chown`), which should preserve the intended non-root runtime while reducing build overhead; no application logic is affected. - Dockerfile <!-- greptile_other_comments_section --> <sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub> **Context used:** - Context from `dashboard` - CLAUDE.md ([source](https://app.greptile.com/review/custom-context?memory=fd949e91-5c3a-4ab5-90a1-cbe184fd6ce8)) - Context from `dashboard` - AGENTS.md ([source](https://app.greptile.com/review/custom-context?memory=0d0c8278-ef8e-4d6c-ab21-f5527e322f13)) <!-- /greptile_comment -->

Most Similar PRs