mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 08:41:10 +02:00
🔧 fix(docker): add --ignore-scripts to pnpm install in all backend Dockerfiles
The root package.json postinstall script runs scripts/generate-env.mjs which doesn't exist in the Docker build context. Using --ignore-scripts skips this postinstall step since env generation isn't needed in Docker. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
3353ceb962
commit
552dc10f25
12 changed files with 24 additions and 24 deletions
|
|
@ -26,8 +26,8 @@ COPY packages/shared-tsconfig ./packages/shared-tsconfig
|
|||
COPY apps/calendar/packages ./apps/calendar/packages
|
||||
COPY apps/calendar/apps/backend ./apps/calendar/apps/backend
|
||||
|
||||
# Install dependencies
|
||||
RUN pnpm install --frozen-lockfile
|
||||
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
WORKDIR /app/packages/shared-errors
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@ COPY packages/shared-tsconfig ./packages/shared-tsconfig
|
|||
# Copy chat backend
|
||||
COPY apps/chat/apps/backend ./apps/chat/apps/backend
|
||||
|
||||
# Install dependencies
|
||||
RUN pnpm install --frozen-lockfile
|
||||
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
WORKDIR /app/packages/shared-errors
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ COPY packages/shared-tsconfig ./packages/shared-tsconfig
|
|||
COPY apps/clock/packages ./apps/clock/packages
|
||||
COPY apps/clock/apps/backend ./apps/clock/apps/backend
|
||||
|
||||
# Install dependencies
|
||||
RUN pnpm install --frozen-lockfile
|
||||
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
WORKDIR /app/packages/shared-errors
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ COPY packages/shared-tsconfig ./packages/shared-tsconfig
|
|||
# Copy contacts backend
|
||||
COPY apps/contacts/apps/backend ./apps/contacts/apps/backend
|
||||
|
||||
# Install dependencies
|
||||
RUN pnpm install --frozen-lockfile
|
||||
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
WORKDIR /app/packages/shared-errors
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@ COPY packages/shared-tsconfig ./packages/shared-tsconfig
|
|||
# Copy manadeck backend
|
||||
COPY apps/manadeck/apps/backend ./apps/manadeck/apps/backend
|
||||
|
||||
# Install dependencies
|
||||
RUN pnpm install --frozen-lockfile
|
||||
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
WORKDIR /app/packages/shared-errors
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@ COPY packages/shared-drizzle-config ./packages/shared-drizzle-config
|
|||
COPY apps/nutriphi/packages ./apps/nutriphi/packages
|
||||
COPY apps/nutriphi/apps/backend ./apps/nutriphi/apps/backend
|
||||
|
||||
# Install dependencies
|
||||
RUN pnpm install --frozen-lockfile
|
||||
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first
|
||||
WORKDIR /app/packages/shared-nestjs-auth
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@ COPY apps/photos/packages/shared ./apps/photos/packages/shared
|
|||
# Copy photos backend
|
||||
COPY apps/photos/apps/backend ./apps/photos/apps/backend
|
||||
|
||||
# Install dependencies
|
||||
RUN pnpm install --frozen-lockfile
|
||||
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
WORKDIR /app/packages/shared-errors
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ COPY packages/shared-tsconfig ./packages/shared-tsconfig
|
|||
# Copy picture backend
|
||||
COPY apps/picture/apps/backend ./apps/picture/apps/backend
|
||||
|
||||
# Install dependencies
|
||||
RUN pnpm install --frozen-lockfile
|
||||
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
WORKDIR /app/packages/shared-errors
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@ COPY packages/shared-tsconfig ./packages/shared-tsconfig
|
|||
COPY apps/presi/packages ./apps/presi/packages
|
||||
COPY apps/presi/apps/backend ./apps/presi/apps/backend
|
||||
|
||||
# Install dependencies
|
||||
RUN pnpm install --frozen-lockfile
|
||||
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
WORKDIR /app/packages/shared-errors
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@ COPY packages/shared-tsconfig ./packages/shared-tsconfig
|
|||
# Copy skilltree backend
|
||||
COPY apps/skilltree/apps/backend ./apps/skilltree/apps/backend
|
||||
|
||||
# Install dependencies
|
||||
RUN pnpm install --frozen-lockfile
|
||||
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
WORKDIR /app/packages/shared-errors
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@ COPY packages/shared-tsconfig ./packages/shared-tsconfig
|
|||
# Copy storage backend
|
||||
COPY apps/storage/apps/backend ./apps/storage/apps/backend
|
||||
|
||||
# Install dependencies
|
||||
RUN pnpm install --frozen-lockfile
|
||||
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
WORKDIR /app/packages/shared-errors
|
||||
|
|
|
|||
|
|
@ -25,8 +25,8 @@ COPY packages/shared-tsconfig ./packages/shared-tsconfig
|
|||
COPY apps/todo/packages ./apps/todo/packages
|
||||
COPY apps/todo/apps/backend ./apps/todo/apps/backend
|
||||
|
||||
# Install dependencies
|
||||
RUN pnpm install --frozen-lockfile
|
||||
# Install dependencies (ignore scripts since generate-env.mjs isn't in Docker context)
|
||||
RUN pnpm install --frozen-lockfile --ignore-scripts
|
||||
|
||||
# Build shared packages first (in dependency order)
|
||||
WORKDIR /app/packages/shared-errors
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue