fix(build): add tsconfig to db dockerfile (#2617)

* fix(build): add tsconfig to db dockerfile

* ack pr comment
This commit is contained in:
Waleed
2025-12-28 12:29:34 -08:00
committed by GitHub
parent 7761b16b87
commit f44fc18041

View File

@@ -11,8 +11,9 @@ WORKDIR /app
# Copy only package files needed for migrations (these change less frequently)
COPY package.json bun.lock turbo.json ./
RUN mkdir -p packages/db
RUN mkdir -p packages/db packages/tsconfig
COPY packages/db/package.json ./packages/db/package.json
COPY packages/tsconfig/package.json ./packages/tsconfig/package.json
# Install dependencies with cache mount for faster builds
RUN --mount=type=cache,id=bun-cache,target=/root/.bun/install/cache \
@@ -34,6 +35,9 @@ COPY --from=deps --chown=nextjs:nodejs /app/node_modules ./node_modules
# Copy package configuration files (needed for migrations)
COPY --chown=nextjs:nodejs packages/db/drizzle.config.ts ./packages/db/drizzle.config.ts
# Copy tsconfig package (needed for workspace symlink resolution)
COPY --chown=nextjs:nodejs packages/tsconfig ./packages/tsconfig
# Copy database package source code (changes most frequently - placed last)
COPY --chown=nextjs:nodejs packages/db ./packages/db