diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..9387538 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,10 @@ +node_modules +**/node_modules +.turbo +**/dist +.git +.env +.env.* +!.env.example +*.md +apps/**/tsconfig.tsbuildinfo diff --git a/apps/admin-panel/Dockerfile b/apps/admin-panel/Dockerfile index 36ffad3..c49c27a 100644 --- a/apps/admin-panel/Dockerfile +++ b/apps/admin-panel/Dockerfile @@ -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 diff --git a/apps/api/Dockerfile b/apps/api/Dockerfile index 064bc0d..59941dc 100644 --- a/apps/api/Dockerfile +++ b/apps/api/Dockerfile @@ -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... diff --git a/apps/user-app/Dockerfile b/apps/user-app/Dockerfile index b2d6c27..adf1bbd 100644 --- a/apps/user-app/Dockerfile +++ b/apps/user-app/Dockerfile @@ -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 diff --git a/packages/shared-types/package.json b/packages/shared-types/package.json index 2e8ef87..2879fde 100644 --- a/packages/shared-types/package.json +++ b/packages/shared-types/package.json @@ -6,5 +6,8 @@ "types": "./dist/index.d.ts", "scripts": { "build": "tsc -p tsconfig.json" + }, + "devDependencies": { + "typescript": "^5.5.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cc528ee..969cebe 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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: