Update MineGeo domain and harden process supervision
All checks were successful
Deploy MineGeo to Dokploy / deploy (push) Successful in 5m57s
All checks were successful
Deploy MineGeo to Dokploy / deploy (push) Successful in 5m57s
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user