IFx some for eror on build docker
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
node_modules
|
||||
**/node_modules
|
||||
.turbo
|
||||
**/dist
|
||||
.git
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
*.md
|
||||
apps/**/tsconfig.tsbuildinfo
|
||||
@@ -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
|
||||
|
||||
@@ -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...
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -6,5 +6,8 @@
|
||||
"types": "./dist/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "tsc -p tsconfig.json"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^5.5.0"
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+5
-1
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user