File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,9 @@ WORKDIR /app
1111
1212# Copy only package files needed for migrations (these change less frequently)
1313COPY package.json bun.lock turbo.json ./
14- RUN mkdir -p packages/db
14+ RUN mkdir -p packages/db packages/tsconfig
1515COPY 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
1819RUN --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)
3536COPY --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)
3842COPY --chown=nextjs:nodejs packages/db ./packages/db
3943
You can’t perform that action at this time.
0 commit comments