Skip to content

Commit f44fc18

Browse files
authored
fix(build): add tsconfig to db dockerfile (#2617)
* fix(build): add tsconfig to db dockerfile * ack pr comment
1 parent 7761b16 commit f44fc18

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docker/db.Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ WORKDIR /app
1111

1212
# Copy only package files needed for migrations (these change less frequently)
1313
COPY package.json bun.lock turbo.json ./
14-
RUN mkdir -p packages/db
14+
RUN mkdir -p packages/db packages/tsconfig
1515
COPY packages/db/package.json ./packages/db/package.json
16+
COPY packages/tsconfig/package.json ./packages/tsconfig/package.json
1617

1718
# Install dependencies with cache mount for faster builds
1819
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
3435
# Copy package configuration files (needed for migrations)
3536
COPY --chown=nextjs:nodejs packages/db/drizzle.config.ts ./packages/db/drizzle.config.ts
3637

38+
# Copy tsconfig package (needed for workspace symlink resolution)
39+
COPY --chown=nextjs:nodejs packages/tsconfig ./packages/tsconfig
40+
3741
# Copy database package source code (changes most frequently - placed last)
3842
COPY --chown=nextjs:nodejs packages/db ./packages/db
3943

0 commit comments

Comments
 (0)