mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:41:09 +02:00
fix(matrix-bots): add --ignore-scripts to Dockerfiles
Skip postinstall scripts for matrix-sdk-crypto-nodejs which doesn't build on Alpine Linux. E2E encryption not needed. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
2e71b5f1d9
commit
53653743f0
3 changed files with 8 additions and 8 deletions
|
|
@ -9,8 +9,8 @@ RUN corepack enable && corepack prepare pnpm@9.15.0 --activate
|
|||
# Copy package files
|
||||
COPY package.json pnpm-lock.yaml* ./
|
||||
|
||||
# Install dependencies
|
||||
RUN pnpm install --frozen-lockfile || pnpm install
|
||||
# Install dependencies (ignore optional native modules)
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts || pnpm install --ignore-scripts
|
||||
|
||||
# Copy source
|
||||
COPY . .
|
||||
|
|
@ -32,8 +32,8 @@ RUN mkdir -p /app/data
|
|||
# Copy package files
|
||||
COPY package.json pnpm-lock.yaml* ./
|
||||
|
||||
# Install production dependencies only
|
||||
RUN pnpm install --prod --frozen-lockfile || pnpm install --prod
|
||||
# Install production dependencies only (ignore optional native modules)
|
||||
RUN pnpm install --prod --frozen-lockfile --ignore-scripts || pnpm install --prod --ignore-scripts
|
||||
|
||||
# Copy built files
|
||||
COPY --from=builder /app/dist ./dist
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ FROM node:20-alpine AS builder
|
|||
WORKDIR /app
|
||||
RUN corepack enable && corepack prepare pnpm@9.15.0 --activate
|
||||
COPY package.json pnpm-lock.yaml* ./
|
||||
RUN pnpm install --frozen-lockfile || pnpm install
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts || pnpm install --ignore-scripts
|
||||
COPY . .
|
||||
RUN pnpm build
|
||||
|
||||
|
|
@ -11,7 +11,7 @@ WORKDIR /app
|
|||
RUN corepack enable && corepack prepare pnpm@9.15.0 --activate
|
||||
RUN mkdir -p /app/data
|
||||
COPY package.json pnpm-lock.yaml* ./
|
||||
RUN pnpm install --prod --frozen-lockfile || pnpm install --prod
|
||||
RUN pnpm install --prod --frozen-lockfile --ignore-scripts || pnpm install --prod --ignore-scripts
|
||||
COPY --from=builder /app/dist ./dist
|
||||
RUN addgroup --system --gid 1001 nodejs
|
||||
RUN adduser --system --uid 1001 nestjs
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ FROM node:20-alpine AS builder
|
|||
WORKDIR /app
|
||||
RUN corepack enable && corepack prepare pnpm@9.15.0 --activate
|
||||
COPY package.json pnpm-lock.yaml* ./
|
||||
RUN pnpm install --frozen-lockfile || pnpm install
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts || pnpm install --ignore-scripts
|
||||
COPY . .
|
||||
RUN pnpm build
|
||||
|
||||
|
|
@ -11,7 +11,7 @@ WORKDIR /app
|
|||
RUN corepack enable && corepack prepare pnpm@9.15.0 --activate
|
||||
RUN mkdir -p /app/data
|
||||
COPY package.json pnpm-lock.yaml* ./
|
||||
RUN pnpm install --prod --frozen-lockfile || pnpm install --prod
|
||||
RUN pnpm install --prod --frozen-lockfile --ignore-scripts || pnpm install --prod --ignore-scripts
|
||||
COPY --from=builder /app/dist ./dist
|
||||
RUN addgroup --system --gid 1001 nodejs
|
||||
RUN adduser --system --uid 1001 nestjs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue