TypeScript Dockerfiles (filesystem, memory, sequentialthinking) ignore the workspace lockfile and overrides
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- docker, node.js, typescript
- Lĩnh vực
- build-system, devops
Hướng nghiên cứu
So sánh src/everything/Dockerfile và tệp loại trừ Docker của nó với các Dockerfile của filesystem, memory và sequentialthinking. Trước tiên, kiểm tra cách image hiện có sử dụng tệp khóa ở thư mục gốc, cài đặt workspace và người dùng không phải root, sau đó áp dụng cách làm tương tự cho ba image được nêu. Build từng image từ thư mục gốc của repository và xác nhận rằng quá trình cài đặt sử dụng tệp khóa, loại bỏ đúng các dependency phát triển và chạy dưới quyền người dùng không phải root.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
The Dockerfiles for filesystem, memory and sequentialthinking build (since #5147 moved them to node:24-alpine, see #4782), but they do not install what this repository tested:
- The workspace lockfile and
overridesare ignored. Each builder stage copiessrc/<server>alone and runs a lockfile-lessnpm install, which resolves every dependency fresh on the day of the build. The rootpackage-lock.jsonand the rootpackage.jsonoverrides(the pins for transitive advisories:qs,hono,proxy-addr,ip-address, …) never reach the image. Example from theeverythingimage built the same way: it installed[email protected], where the lockfile has6.16.0. --omit-devis not an npm flag.npm ci --ignore-scripts --omit-devprintsnpm warn Unknown cli config "--omit-dev"; dev dependencies are left out only becauseNODE_ENV=productionis set. The flag is--omit=dev.- They run as root (the TypeScript half of #4741, which covers the Python images).
Reproduce
docker build -f src/filesystem/Dockerfile -t fs-check . 2>&1 | grep -E 'omit-dev|added'
Expected
Each image installs from the root lockfile with npm ci --workspace src/<server>, building from the repository root as context, with a src/<server>/Dockerfile.dockerignore allow-list. #3309's PR does this for everything (src/everything/Dockerfile); the same shape applies to the other three. Out of scope for #3309, which concerns everything only.
- Ngôn ngữ chính
- TypeScript
- Star
- 91.6k
- Fork
- 11.9k
- Merge trung bình
- 4 giờ 38 phút
- Pull request đã merge (30 ngày)
- 241
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của modelcontextprotocol/servers
-
enhancement server-everything v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
modelcontextprotocol/servers#5371 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
modelcontextprotocol/servers#5343 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
chore v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
modelcontextprotocol/servers#5339 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
chore v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
modelcontextprotocol/servers#5337 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
release skill: link the Prepare Python Release PR to the release issue with addCloseIssueReferencesĐang mởdocumentation v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
modelcontextprotocol/servers#5335 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của modelcontextprotocol/servers
Issue tương tự
-
Shell: serve the home app's Cookie Policy on a hard reloadCó thể đã có người làm @2001anshkaushik đã nhận hôm nay. Đang mởfeature module:ai
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
rocketride-org/rocketride-server#2899 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
wazuh/wazuh-dashboard-plugins#9551 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
gofish-graphics/gofish-graphics#1252 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
optimization P3 size:XS
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
josephfung/curia#2366 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
stranded-follow-up sweep trusts any issue whose body carries the marker as the tracking issueĐang mởtype:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
nightgauge/nightgauge#2688 ·
Maintainer thường phản hồi trong vòng 1 ngày