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
Some checks failed
Build and Publish Mana Loop Docker Image / build-and-publish (push) Has been cancelled
This commit is contained in:
@@ -19,11 +19,13 @@ RUN bun install --frozen-lockfile
|
||||
# Copy the rest of the application
|
||||
COPY . .
|
||||
|
||||
# Create Prisma config directory to prevent config lookup error
|
||||
RUN mkdir -p /app/.config/prisma
|
||||
|
||||
# Set environment variables for build
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV NODE_ENV=production
|
||||
ENV DATABASE_URL="file:./dev.db"
|
||||
ENV PRISMA_SKIP_CONFIG_LOADING=1
|
||||
|
||||
# Generate Prisma client
|
||||
RUN bunx prisma generate --schema=./prisma/schema.prisma
|
||||
|
||||
Reference in New Issue
Block a user