docker: Coolify対応のためDockerfileビルドに移行しbind mount依存を排除

- ルートDockerfileで npm ci をビルド時に一元実行(node_modulesの競合破損を防止)
- web/api/workerをYAMLアンカーで共通ビルド構成に変更し、.:/workspace のbind mountを削除
- vinextは --hostname でバインド指定(--host は無視される)
- minio-initを削除(APIがbucketを自動作成)し、MinIOをexposeのみの内部公開に変更
- .dockerignore を追加し、.wranglerディレクトリをDockerfile内で事前作成
This commit is contained in:
amania-jailbreak
2026-08-05 13:16:39 +09:00
parent 21bd070dc1
commit 3bb4d5aa65
4 changed files with 83 additions and 53 deletions
+16
View File
@@ -0,0 +1,16 @@
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"]