mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 18:01:09 +02:00
🐛 fix(docker): add missing build-shared-packages.sh script for Docker builds
The todo-backend Dockerfile (and potentially other backends) expect this script to exist in docker/shared/. This script builds shared packages in dependency order during Docker image builds. Fixes CI failure: "ERROR: failed to build: /docker/shared/build-shared-packages.sh: not found" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
2186cb3518
commit
111e7dd02c
1 changed files with 26 additions and 0 deletions
26
docker/shared/build-shared-packages.sh
Executable file
26
docker/shared/build-shared-packages.sh
Executable file
|
|
@ -0,0 +1,26 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# Build shared packages in dependency order for Docker builds
|
||||||
|
# This script is used by backend Dockerfiles to build shared packages
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo "Building shared packages in dependency order..."
|
||||||
|
|
||||||
|
# Build packages in dependency order
|
||||||
|
cd /app
|
||||||
|
|
||||||
|
# 1. Build base packages with no dependencies
|
||||||
|
echo "Building better-auth-types..."
|
||||||
|
cd packages/better-auth-types && pnpm build && cd /app
|
||||||
|
|
||||||
|
echo "Building shared-errors..."
|
||||||
|
cd packages/shared-errors && pnpm build && cd /app
|
||||||
|
|
||||||
|
# 2. Build packages that depend on base packages
|
||||||
|
echo "Building shared-nestjs-cors..."
|
||||||
|
cd packages/shared-nestjs-cors && pnpm build && cd /app
|
||||||
|
|
||||||
|
echo "Building shared-nestjs-auth..."
|
||||||
|
cd packages/shared-nestjs-auth && pnpm build && cd /app
|
||||||
|
|
||||||
|
echo "✅ All shared packages built successfully!"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue