This commit is contained in:
@@ -37,13 +37,6 @@ RUN npx tsx scripts/validate-env.ts
|
||||
|
||||
RUN npm run build
|
||||
|
||||
# Smoke test during build to catch runtime errors early
|
||||
# We start the app in the background, wait for it to be ready, and run the smoke test
|
||||
RUN (node .next/standalone/server.js &) && \
|
||||
npx wait-on -t 30000 http://localhost:3000/health && \
|
||||
npx tsx scripts/smoke-test.ts http://localhost:3000/health && \
|
||||
pkill -f "node .next/standalone/server.js"
|
||||
|
||||
# Production image, copy all the files and run next
|
||||
FROM base AS runner
|
||||
WORKDIR /app
|
||||
|
||||
Reference in New Issue
Block a user