Skip to content

refactor: move chown to COPY statments#337

Merged
SunkenSplash merged 1 commit into
devfrom
build/docker-chown
May 4, 2026
Merged

refactor: move chown to COPY statments#337
SunkenSplash merged 1 commit into
devfrom
build/docker-chown

Conversation

@amuhak
Copy link
Copy Markdown
Contributor

@amuhak amuhak commented May 1, 2026

add chown to all the copy commands to remove the need for a final RUN chown -R bun:bun /app

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors the server Dockerfile to set file ownership during multi-stage COPY steps so the final runtime images can run as the bun user without an extra recursive chown layer.

Changes:

  • Added --chown=bun:bun to COPY commands that bring in node_modules, manifests, build artifacts, and generated Prisma client.
  • Removed RUN chown -R bun:bun /app from both the prisma-migrate and server stages.

@SunkenSplash SunkenSplash merged commit b3567c6 into dev May 4, 2026
7 checks passed
@SunkenSplash SunkenSplash mentioned this pull request May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants