Skip to content

build: set ownership as files are copied, not in a step of its own - #178

Merged
TITeee merged 1 commit into
mainfrom
build/slim-image
Nov 16, 2026
Merged

TITeee merged 1 commit into
mainfrom
build/slim-image

Conversation

@TITeee

@TITeee TITeee commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • The runner's last step, chown -R /app, copied all of node_modules into another layer (420 MB). The files are now copied with --chown, to the same owner as before (heretix:nodejs), and only /app itself is chowned.
  • The image goes from 2.4 GB to 1.9 GB (uncompressed, local build).

Checked

  • The demo stack runs on the new image: migrations, searches, alert details.
  • /app is owned by and writable for heretix, as before.

The runner's last step, chown -R /app, copied all of node_modules into
another layer (420 MB). The files are now copied with --chown, to the
same owner as before, and only /app itself is chowned. The image goes
from 2.4 GB to 1.9 GB.
@TITeee
TITeee merged commit c681c4a into main Nov 16, 2026
4 checks passed
@TITeee
TITeee deleted the build/slim-image branch November 16, 2026 12:29
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.

1 participant