- ルートDockerfileで npm ci をビルド時に一元実行(node_modulesの競合破損を防止) - web/api/workerをYAMLアンカーで共通ビルド構成に変更し、.:/workspace のbind mountを削除 - vinextは --hostname でバインド指定(--host は無視される) - minio-initを削除(APIがbucketを自動作成)し、MinIOをexposeのみの内部公開に変更 - .dockerignore を追加し、.wranglerディレクトリをDockerfile内で事前作成
17 lines
403 B
Docker
17 lines
403 B
Docker
FROM node:22-bookworm
|
|
|
|
WORKDIR /workspace
|
|
|
|
# package-lock.json is committed, so npm ci installs the exact dependency tree.
|
|
COPY package.json package-lock.json ./
|
|
|
|
RUN npm ci --no-audit --no-fund
|
|
|
|
COPY . .
|
|
|
|
# vinext/wrangler writes logs and registry state under .wrangler; the directory
|
|
# itself is git/dockerignored, so create it explicitly.
|
|
RUN mkdir -p /workspace/.wrangler
|
|
|
|
CMD ["npm", "run", "dev"]
|