IFx some for eror on build docker

This commit is contained in:
mahmood
2026-09-10 01:00:00 +03:30
parent 3e3cb4b3c0
commit 78e148a6b5
6 changed files with 27 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
node_modules
**/node_modules
.turbo
**/dist
.git
.env
.env.*
!.env.example
*.md
apps/**/tsconfig.tsbuildinfo
+3
View File
@@ -27,6 +27,9 @@ RUN pnpm install --frozen-lockfile
# Build the project
COPY --from=builder /app/out/full/ .
COPY turbo.json turbo.json
COPY tsconfig.base.json tsconfig.base.json
# Re-link workspace after full source copy (pnpm symlinks)
RUN pnpm install --frozen-lockfile --offline || pnpm install --frozen-lockfile
RUN pnpm turbo run build --filter=admin-panel...
FROM nginx:alpine AS runner
+3
View File
@@ -28,6 +28,9 @@ RUN pnpm install --frozen-lockfile
# Build the project and its dependencies
COPY --from=builder /app/out/full/ .
COPY turbo.json turbo.json
COPY tsconfig.base.json tsconfig.base.json
# Re-link workspace after full source copy (pnpm symlinks)
RUN pnpm install --frozen-lockfile --offline || pnpm install --frozen-lockfile
# Generate prisma client before building
RUN pnpm --filter api exec prisma generate
RUN pnpm turbo run build --filter=api...
+3
View File
@@ -27,6 +27,9 @@ RUN pnpm install --frozen-lockfile
# Build the project
COPY --from=builder /app/out/full/ .
COPY turbo.json turbo.json
COPY tsconfig.base.json tsconfig.base.json
# Re-link workspace after full source copy (pnpm symlinks)
RUN pnpm install --frozen-lockfile --offline || pnpm install --frozen-lockfile
RUN pnpm turbo run build --filter=user-app...
FROM nginx:alpine AS runner
+3
View File
@@ -6,5 +6,8 @@
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc -p tsconfig.json"
},
"devDependencies": {
"typescript": "^5.5.0"
}
}
+5 -1
View File
@@ -168,7 +168,11 @@ importers:
specifier: ^7.1.0
version: 7.4.1
packages/shared-types: {}
packages/shared-types:
devDependencies:
typescript:
specifier: ^5.5.0
version: 5.9.3
packages: