Update Dockerfile
This commit is contained in:
@@ -33,10 +33,10 @@ ENV API_HOSTNAME=internal-api.inboxi.ng
|
|||||||
# Ensure .next directory exists and has proper permissions
|
# Ensure .next directory exists and has proper permissions
|
||||||
RUN mkdir -p /app/.next && chmod -R 755 /app/.next
|
RUN mkdir -p /app/.next && chmod -R 755 /app/.next
|
||||||
|
|
||||||
# Build the Next.js application with increased memory for Turbopack
|
# Build the Next.js application with reduced memory for Turbopack
|
||||||
# Next.js 16 uses Turbopack by default which may need more memory
|
# Next.js 16 uses Turbopack by default which may need more memory
|
||||||
RUN echo "Building with GIT_COMMIT_SHA=$(cat /app/git_commit_sha)" && \
|
RUN echo "Building with GIT_COMMIT_SHA=$(cat /app/git_commit_sha)" && \
|
||||||
NODE_OPTIONS='--max_old_space_size=4096' NEXT_TELEMETRY_DISABLED=1 pnpm run build
|
NODE_OPTIONS='--max_old_space_size=2048' NEXT_TELEMETRY_DISABLED=1 pnpm run build
|
||||||
|
|
||||||
# ---- Production Stage ----
|
# ---- Production Stage ----
|
||||||
# Use Node 20 for production as well to match builder
|
# Use Node 20 for production as well to match builder
|
||||||
|
|||||||
Reference in New Issue
Block a user