Fix Docker build: create .config/prisma directory for Prisma 6
Some checks failed
Build and Publish Mana Loop Docker Image / build-and-publish (push) Has been cancelled

This commit is contained in:
2026-03-25 17:54:05 +00:00
parent 81a72a1ed7
commit aeabebdd9f

View File

@@ -19,11 +19,13 @@ RUN bun install --frozen-lockfile
# Copy the rest of the application # Copy the rest of the application
COPY . . COPY . .
# Create Prisma config directory to prevent config lookup error
RUN mkdir -p /app/.config/prisma
# Set environment variables for build # Set environment variables for build
ENV NEXT_TELEMETRY_DISABLED=1 ENV NEXT_TELEMETRY_DISABLED=1
ENV NODE_ENV=production ENV NODE_ENV=production
ENV DATABASE_URL="file:./dev.db" ENV DATABASE_URL="file:./dev.db"
ENV PRISMA_SKIP_CONFIG_LOADING=1
# Generate Prisma client # Generate Prisma client
RUN bunx prisma generate --schema=./prisma/schema.prisma RUN bunx prisma generate --schema=./prisma/schema.prisma