maj v2 dockefile correction cicd
This commit is contained in:
@@ -17,7 +17,7 @@ COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
|
||||
# Generate Prisma Client
|
||||
RUN DATABASE_URL="postgresql://dummy:dummy@localhost:5432/dummy" npx prisma generate
|
||||
RUN DATABASE_URL="postgresql://dummy:dummy@localhost:5432/dummy" npx prisma generate --schema=prisma/schema.prisma
|
||||
|
||||
# Build Next.js
|
||||
RUN npm run build
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
import path from 'node:path'
|
||||
import { config as loadEnv } from 'dotenv'
|
||||
import { defineConfig, env } from '@prisma/config'
|
||||
|
||||
// Load .env
|
||||
loadEnv({ path: '.env' })
|
||||
|
||||
export default defineConfig({
|
||||
schema: path.join('prisma', 'schema.prisma'),
|
||||
datasource: {
|
||||
url: env('DATABASE_URL'),
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user