feat: Configure Docker to use host.docker.internal for database connection, include prisma.config.ts in the image, and simplify Prisma configuration.

This commit is contained in:
Moh Dzulfikri Maulana
2026-03-09 02:15:55 +07:00
parent 9abf68320a
commit b8a5ce72c1
3 changed files with 11 additions and 9 deletions

View File

@@ -10,6 +10,7 @@ RUN npm install -g pnpm
COPY package.json pnpm-lock.yaml ./
# Copy prisma directory to generate client
COPY prisma ./prisma/
COPY prisma.config.ts ./
# Install dependencies
RUN pnpm install --frozen-lockfile
@@ -44,6 +45,7 @@ RUN adduser --system --uid 1001 nextjs
# Copy necessary files
COPY --from=builder /app/public ./public
COPY --from=builder /app/prisma ./prisma
COPY --from=builder /app/prisma.config.ts ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static