Skip to content

Commit 47cfc64

Browse files
author
claudfuen
committed
fix: include src/env.ts in Docker container for migrations
- Copy entire src directory instead of just src/db in Dockerfile - This ensures the migration script can access the env.ts file - Fixes 'Cannot find module ../src/env' error during database migrations
1 parent 70e9901 commit 47cfc64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/web/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ COPY --from=builder /app/.next/standalone ./
3636
COPY --from=builder /app/.next/static ./.next/static
3737

3838
# Copy migration files and scripts for database migrations
39-
COPY --from=builder /app/src/db ./src/db
39+
COPY --from=builder /app/src ./src
4040
COPY --from=builder /app/scripts ./scripts
4141
COPY --from=builder /app/package.json ./package.json
4242
COPY --from=builder /app/drizzle.config.ts ./drizzle.config.ts

0 commit comments

Comments
 (0)