Detect Next.js build phase and skip DATABASE_URL check during Docker build
This commit is contained in:
@@ -11,6 +11,7 @@ WORKDIR /app
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV NEXT_PHASE=phase-production-build
|
||||
RUN npm run build
|
||||
|
||||
FROM base AS runner
|
||||
|
||||
Reference in New Issue
Block a user