Skip to content

Commit 2088a0c

Browse files
retry
1 parent 438950b commit 2088a0c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,12 @@ COPY --from=builder /app/public ./public
4646
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
4747
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
4848

49-
# Copying scripts and node_modules required for seeding
50-
COPY --from=deps /app/node_modules ./node_modules
49+
# Copy prisma generated client
50+
COPY --from=builder /app/node_modules/.prisma ./node_modules/.prisma
51+
COPY --from=builder /app/node_modules/@prisma ./node_modules/@prisma
52+
COPY --from=builder /app/prisma ./prisma
53+
54+
# Copy seed scripts
5155
COPY --from=builder /app/scripts ./scripts
5256

5357
USER nextjs

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66

77
seeder:
88
image: cornellappdev/ai-dev:${IMAGE_TAG}
9-
command: ["npx", "prisma", "db", "seed"]
9+
command: ["sh", "-c", "npx prisma generate && npx prisma db seed"]
1010
env_file:
1111
- .env
1212
volumes:

0 commit comments

Comments
 (0)