Update MineGeo domain and harden process supervision
All checks were successful
Deploy MineGeo to Dokploy / deploy (push) Successful in 5m57s

This commit is contained in:
2026-10-15 20:35:39 +05:00
parent 0e4412c99b
commit 1f254b29a2
37 changed files with 101 additions and 70 deletions

View File

@@ -15,10 +15,12 @@ ENV NODE_ENV=production \
NODE_OPTIONS=--max-old-space-size=640 \
NEXT_PUBLIC_SUPABASE_URL=${NEXT_PUBLIC_SUPABASE_URL} \
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=${NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY}
# The Webpack compiler cache is build-only and can be hundreds of megabytes.
RUN if [ -z "$NEXT_PUBLIC_SUPABASE_URL" ] || [ -z "$NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY" ]; then \
echo "In Dokploy, set NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY under Application > Environment > Build Time Arguments." >&2; \
exit 1; \
fi && npm run build:docker
fi && npm run build:docker \
&& rm -rf /app/.next/cache/webpack
# Reuse the installation, and prune only after the build has completed.
# A second independent npm ci stage could overlap with compilation in BuildKit.