mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-06 21:54:01 -05:00
fix(build): add tsconfig to db dockerfile (#2617)
* fix(build): add tsconfig to db dockerfile * ack pr comment
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user