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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user