Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

TypeScript Dockerfiles (filesystem, memory, sequentialthinking) ignore the workspace lockfile and overrides

オープン 初心者向け
#5,345 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
docker, node.js, typescript

調査の方向性

src/everything/DockerfileとそのDocker除外ファイルを、filesystem、memory、sequentialthinkingのDockerfileと比較してください。まず、既存のイメージがルートのロックファイル、workspaceのインストール、非rootユーザーをどのように使用しているかを確認し、同じ方法を指定された3つのイメージに適用してください。各イメージをリポジトリのルートからビルドし、インストールでロックファイルが使われること、開発依存関係が正しく省かれること、非rootユーザーで実行されることを確認してください。

索引モデルが issue の本文から書いたものです。

説明

chore server-filesystem server-memory server-sequentialthinking v2

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 overrides are ignored. Each builder stage copies src/<server> alone and runs a lockfile-less npm install, which resolves every dependency fresh on the day of the build. The root package-lock.json and the root package.json overrides (the pins for transitive advisories: qs, hono, proxy-addr, ip-address, …) never reach the image. Example from the everything image built the same way: it installed [email protected], where the lockfile has 6.16.0.
  • --omit-dev is not an npm flag. npm ci --ignore-scripts --omit-dev prints npm warn Unknown cli config "--omit-dev"; dev dependencies are left out only because NODE_ENV=production is 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.

主要言語
TypeScript
スター
91.6k
フォーク
11.9k
平均マージ
4時間 31分
マージ済み PR(30日)
236

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

modelcontextprotocol/servers のほかの issue

modelcontextprotocol/servers の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。