Skip to content

fix(docker): Set image file permissions on COPY to avoid a duplicate layer - #477

Merged
Bohreromir merged 1 commit into
mainfrom
worktree-fix-475-image-size
Nov 18, 2026
Merged

Bohreromir merged 1 commit into
mainfrom
worktree-fix-475-image-size

Conversation

@Bohreromir

@Bohreromir Bohreromir commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Description

The recursive chown/chmod after the COPYs stored node_modules and the build output a second time in its own layer, adding an additional 242 MB

Docs

Release note

Checklist

Author

  • AI review done, findings addressed
  • Tests added or updated
  • Changelog updated (if the repo keeps one)

Reviewer

  • Useful comments and logging
  • Docs added or updated per the style guide

Acceptance

  • Check for release notes and docs

…layer (#475)

The recursive chown/chmod after the COPYs stored node_modules and the
build output a second time in its own layer (242 MB). The COPYs now set
ownership and g=u themselves; only the home directory and the COPY
target directories are prepared in a small separate RUN.

Owner and mode of every file under /stackable and /licenses are
unchanged. Image size drops from 999 MB to 711 MB on disk.
@github-actions

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 67.58% 9291 / 13747
🔵 Statements 66.5% 12469 / 18749
🔵 Functions 68.35% 2987 / 4370
🔵 Branches 57.53% 5241 / 9109
File CoverageNo changed files found.
Generated in workflow #1321 for commit 0a48ca3 by the Vitest Coverage Report Action

@Bohreromir Bohreromir linked an issue Nov 17, 2026 that may be closed by this pull request
@Bohreromir Bohreromir self-assigned this Nov 18, 2026
@Bohreromir Bohreromir moved this to Development: Waiting for Review in Stackable Engineering Nov 18, 2026
@Bohreromir
Bohreromir marked this pull request as ready for review November 18, 2026 14:04
@sbernauer sbernauer moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Nov 18, 2026
@Bohreromir
Bohreromir added this pull request to the merge queue Nov 18, 2026
@sbernauer sbernauer moved this from Development: In Review to Development: Done in Stackable Engineering Nov 18, 2026
Merged via the queue into main with commit 0964533 Nov 18, 2026
14 of 15 checks passed
@Bohreromir
Bohreromir deleted the worktree-fix-475-image-size branch November 18, 2026 14:35
@lfrancke lfrancke moved this from Development: Done to Done in Stackable Engineering Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

Container image size too large

2 participants