diff --git a/services/matrix-calendar-bot/Dockerfile b/services/matrix-calendar-bot/Dockerfile index e9a0af7e3..4d6eb8a26 100644 --- a/services/matrix-calendar-bot/Dockerfile +++ b/services/matrix-calendar-bot/Dockerfile @@ -17,7 +17,7 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common COPY services/matrix-calendar-bot ./services/matrix-calendar-bot # Install all dependencies -RUN pnpm install --frozen-lockfile +RUN pnpm install --frozen-lockfile --ignore-scripts # Build shared packages first (in dependency order) RUN pnpm --filter @manacore/bot-services build @@ -48,7 +48,7 @@ COPY --from=builder /app/services/matrix-calendar-bot/dist ./services/matrix-cal COPY --from=builder /app/services/matrix-calendar-bot/package.json ./services/matrix-calendar-bot/ # Install production dependencies only -RUN pnpm install --frozen-lockfile --prod +RUN pnpm install --frozen-lockfile --prod --ignore-scripts # Create data directory RUN mkdir -p /app/data diff --git a/services/matrix-clock-bot/Dockerfile b/services/matrix-clock-bot/Dockerfile index c6ffa2680..deb4d78eb 100644 --- a/services/matrix-clock-bot/Dockerfile +++ b/services/matrix-clock-bot/Dockerfile @@ -17,7 +17,7 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common COPY services/matrix-clock-bot ./services/matrix-clock-bot # Install all dependencies -RUN pnpm install --frozen-lockfile +RUN pnpm install --frozen-lockfile --ignore-scripts # Build shared packages first (in dependency order) RUN pnpm --filter @manacore/bot-services build @@ -48,7 +48,7 @@ COPY --from=builder /app/services/matrix-clock-bot/dist ./services/matrix-clock- COPY --from=builder /app/services/matrix-clock-bot/package.json ./services/matrix-clock-bot/ # Install production dependencies only -RUN pnpm install --frozen-lockfile --prod +RUN pnpm install --frozen-lockfile --prod --ignore-scripts # Create data directory RUN mkdir -p /app/data diff --git a/services/matrix-mana-bot/Dockerfile b/services/matrix-mana-bot/Dockerfile index a7a487654..4e45bce03 100644 --- a/services/matrix-mana-bot/Dockerfile +++ b/services/matrix-mana-bot/Dockerfile @@ -16,8 +16,8 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common # Copy this bot COPY services/matrix-mana-bot ./services/matrix-mana-bot -# Install all dependencies (allow scripts for native modules) -RUN pnpm install --frozen-lockfile +# Install all dependencies (--ignore-scripts to skip root postinstall hooks) +RUN pnpm install --frozen-lockfile --ignore-scripts # Build shared packages first (in dependency order) RUN pnpm --filter @manacore/bot-services build @@ -47,8 +47,8 @@ COPY --from=builder /app/packages/matrix-bot-common/package.json ./packages/matr COPY --from=builder /app/services/matrix-mana-bot/dist ./services/matrix-mana-bot/dist COPY --from=builder /app/services/matrix-mana-bot/package.json ./services/matrix-mana-bot/ -# Install production dependencies (allow scripts for native modules) -RUN pnpm install --frozen-lockfile --prod +# Install production dependencies only (--ignore-scripts to skip root postinstall hooks) +RUN pnpm install --frozen-lockfile --prod --ignore-scripts # Create data directory RUN mkdir -p /app/data diff --git a/services/matrix-nutriphi-bot/Dockerfile b/services/matrix-nutriphi-bot/Dockerfile index a3bf89e12..bd6f0ffb5 100644 --- a/services/matrix-nutriphi-bot/Dockerfile +++ b/services/matrix-nutriphi-bot/Dockerfile @@ -17,7 +17,7 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common COPY services/matrix-nutriphi-bot ./services/matrix-nutriphi-bot # Install all dependencies -RUN pnpm install --frozen-lockfile +RUN pnpm install --frozen-lockfile --ignore-scripts # Build shared packages first (in dependency order) RUN pnpm --filter @manacore/bot-services build @@ -48,7 +48,7 @@ COPY --from=builder /app/services/matrix-nutriphi-bot/dist ./services/matrix-nut COPY --from=builder /app/services/matrix-nutriphi-bot/package.json ./services/matrix-nutriphi-bot/ # Install production dependencies only -RUN pnpm install --frozen-lockfile --prod +RUN pnpm install --frozen-lockfile --prod --ignore-scripts # Create data directory RUN mkdir -p /app/data diff --git a/services/matrix-ollama-bot/Dockerfile b/services/matrix-ollama-bot/Dockerfile index e0e259a06..2f0710765 100644 --- a/services/matrix-ollama-bot/Dockerfile +++ b/services/matrix-ollama-bot/Dockerfile @@ -17,7 +17,7 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common COPY services/matrix-ollama-bot ./services/matrix-ollama-bot # Install all dependencies -RUN pnpm install --frozen-lockfile +RUN pnpm install --frozen-lockfile --ignore-scripts # Build shared packages first (in dependency order) RUN pnpm --filter @manacore/bot-services build @@ -48,7 +48,7 @@ COPY --from=builder /app/services/matrix-ollama-bot/dist ./services/matrix-ollam COPY --from=builder /app/services/matrix-ollama-bot/package.json ./services/matrix-ollama-bot/ # Install production dependencies only -RUN pnpm install --frozen-lockfile --prod +RUN pnpm install --frozen-lockfile --prod --ignore-scripts # Create data directory RUN mkdir -p /app/data diff --git a/services/matrix-project-doc-bot/Dockerfile b/services/matrix-project-doc-bot/Dockerfile index 744d3c1c0..a3765371c 100644 --- a/services/matrix-project-doc-bot/Dockerfile +++ b/services/matrix-project-doc-bot/Dockerfile @@ -17,7 +17,7 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common COPY services/matrix-project-doc-bot ./services/matrix-project-doc-bot # Install all dependencies -RUN pnpm install --frozen-lockfile +RUN pnpm install --frozen-lockfile --ignore-scripts # Build shared packages first (in dependency order) RUN pnpm --filter @manacore/bot-services build @@ -48,7 +48,7 @@ COPY --from=builder /app/services/matrix-project-doc-bot/dist ./services/matrix- COPY --from=builder /app/services/matrix-project-doc-bot/package.json ./services/matrix-project-doc-bot/ # Install production dependencies only -RUN pnpm install --frozen-lockfile --prod +RUN pnpm install --frozen-lockfile --prod --ignore-scripts # Create data directory RUN mkdir -p /app/data diff --git a/services/matrix-stats-bot/Dockerfile b/services/matrix-stats-bot/Dockerfile index 42737bd44..2183efab8 100644 --- a/services/matrix-stats-bot/Dockerfile +++ b/services/matrix-stats-bot/Dockerfile @@ -17,7 +17,7 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common COPY services/matrix-stats-bot ./services/matrix-stats-bot # Install all dependencies -RUN pnpm install --frozen-lockfile +RUN pnpm install --frozen-lockfile --ignore-scripts # Build shared packages first (in dependency order) RUN pnpm --filter @manacore/bot-services build @@ -48,7 +48,7 @@ COPY --from=builder /app/services/matrix-stats-bot/dist ./services/matrix-stats- COPY --from=builder /app/services/matrix-stats-bot/package.json ./services/matrix-stats-bot/ # Install production dependencies only -RUN pnpm install --frozen-lockfile --prod +RUN pnpm install --frozen-lockfile --prod --ignore-scripts # Create data directory RUN mkdir -p /app/data diff --git a/services/matrix-todo-bot/Dockerfile b/services/matrix-todo-bot/Dockerfile index 555ac224c..8f03306ed 100644 --- a/services/matrix-todo-bot/Dockerfile +++ b/services/matrix-todo-bot/Dockerfile @@ -17,7 +17,7 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common COPY services/matrix-todo-bot ./services/matrix-todo-bot # Install all dependencies -RUN pnpm install --frozen-lockfile +RUN pnpm install --frozen-lockfile --ignore-scripts # Build shared packages first (in dependency order) RUN pnpm --filter @manacore/bot-services build @@ -48,7 +48,7 @@ COPY --from=builder /app/services/matrix-todo-bot/dist ./services/matrix-todo-bo COPY --from=builder /app/services/matrix-todo-bot/package.json ./services/matrix-todo-bot/ # Install production dependencies only -RUN pnpm install --frozen-lockfile --prod +RUN pnpm install --frozen-lockfile --prod --ignore-scripts # Create data directory RUN mkdir -p /app/data diff --git a/services/matrix-tts-bot/Dockerfile b/services/matrix-tts-bot/Dockerfile index 10eadad74..8e2e820d2 100644 --- a/services/matrix-tts-bot/Dockerfile +++ b/services/matrix-tts-bot/Dockerfile @@ -17,7 +17,7 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common COPY services/matrix-tts-bot ./services/matrix-tts-bot # Install all dependencies -RUN pnpm install --frozen-lockfile +RUN pnpm install --frozen-lockfile --ignore-scripts # Build shared packages first (in dependency order) RUN pnpm --filter @manacore/bot-services build @@ -48,7 +48,7 @@ COPY --from=builder /app/services/matrix-tts-bot/dist ./services/matrix-tts-bot/ COPY --from=builder /app/services/matrix-tts-bot/package.json ./services/matrix-tts-bot/ # Install production dependencies only -RUN pnpm install --frozen-lockfile --prod +RUN pnpm install --frozen-lockfile --prod --ignore-scripts # Create data directory RUN mkdir -p /app/data diff --git a/services/matrix-zitare-bot/Dockerfile b/services/matrix-zitare-bot/Dockerfile index 0a4408efb..dc7e29113 100644 --- a/services/matrix-zitare-bot/Dockerfile +++ b/services/matrix-zitare-bot/Dockerfile @@ -17,7 +17,7 @@ COPY packages/matrix-bot-common ./packages/matrix-bot-common COPY services/matrix-zitare-bot ./services/matrix-zitare-bot # Install all dependencies -RUN pnpm install --frozen-lockfile +RUN pnpm install --frozen-lockfile --ignore-scripts # Build shared packages first (in dependency order) RUN pnpm --filter @manacore/bot-services build @@ -48,7 +48,7 @@ COPY --from=builder /app/services/matrix-zitare-bot/dist ./services/matrix-zitar COPY --from=builder /app/services/matrix-zitare-bot/package.json ./services/matrix-zitare-bot/ # Install production dependencies only -RUN pnpm install --frozen-lockfile --prod +RUN pnpm install --frozen-lockfile --prod --ignore-scripts # Create data directory RUN mkdir -p /app/data