fix(ci): add tauri package.json to Dockerfiles and fix Android NDK/build issues
Build and Deploy: workspace has 4 members (api/web/shared/tauri) but Dockerfiles only copied 3 package.json files. Missing tauri workspace member caused bun install --production to fail with frozen lockfile error. Build Android APK: - Remove explicit NDK 28 install (runner has NDK 29 pre-installed, dual NDK presence broke ANDROID_NDK_HOME resolution) - Auto-pin NDK version from runner's SDK - rm -rf gen/android before tauri android init (stale cache recovery) - Remove gen/android/.gradle from Gradle cache (causes stale state) - Use --apk flag for faster APK-only build Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,7 @@ WORKDIR /app
|
||||
COPY package.json bun.lock bunfig.toml tsconfig.base.json ./
|
||||
COPY apps/api/package.json apps/api/package.json
|
||||
COPY apps/web/package.json apps/web/package.json
|
||||
COPY apps/tauri/package.json apps/tauri/package.json
|
||||
COPY packages/shared/package.json packages/shared/package.json
|
||||
RUN bun install --production
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ COPY package.json bun.lock bunfig.toml tsconfig.base.json ./
|
||||
COPY packages/shared/package.json packages/shared/package.json
|
||||
COPY apps/web/package.json apps/web/package.json
|
||||
COPY apps/api/package.json apps/api/package.json
|
||||
COPY apps/tauri/package.json apps/tauri/package.json
|
||||
RUN bun install
|
||||
|
||||
COPY packages/shared packages/shared
|
||||
|
||||
Reference in New Issue
Block a user