Skip to content

fix(ingress): normalize requirements file mode - #118

Merged
kvinwang merged 1 commit into
mainfrom
fix/ingress-deterministic-copy-mode
Sep 2, 2026
Merged

fix(ingress): normalize requirements file mode#118
kvinwang merged 1 commit into
mainfrom
fix/ingress-deterministic-copy-mode

Conversation

@kvinwang

@kvinwang kvinwang commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • normalize requirements.txt to mode 0644 when copying it into the image
  • prevent the published image digest from depending on the checkout umask

Verification

Built from a worktree where requirements.txt had mode 0664:

sha256:cd54c56c943d6a9b96e9ffd7683e742fbc551124a4a1960553d0d022a9f632ce

This exactly matches the published dstacktee/dstack-ingress:2.4 digest.

Copilot AI lite review requested due to automatic review settings September 2, 2026 13:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The change is minimal, consistent with existing BuildKit-only Dockerfile usage, and directly addresses the reproducibility concern described in the PR.

Pull request overview

This PR makes the dstack-ingress image build more reproducible by ensuring requirements.txt always has consistent permissions inside the image, so the resulting image digest doesn’t vary based on the working tree’s file mode.

Changes:

  • Normalize requirements.txt permissions during COPY using --chmod=644.
  • Add an inline comment documenting why the normalization is needed for reproducible digests.
File summaries
File Description
custom-domain/dstack-ingress/Dockerfile Ensures deterministic file mode for requirements.txt at build time to stabilize the resulting image digest.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@kvinwang
kvinwang merged commit 7b29492 into main Sep 2, 2026
7 checks passed
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.

2 participants