fix: set Node options to prevent memory issues during build
This commit is contained in:
@@ -33,6 +33,10 @@ RUN npm install
|
||||
RUN if [ -z "$GIT_REPO_URL" ]; then echo "Copying local files..."; fi
|
||||
COPY . .
|
||||
|
||||
# Set Node options for build to prevent memory issues
|
||||
ENV NODE_OPTIONS="--max-old-space-size=4096"
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
|
||||
# Build the application for production
|
||||
RUN npm run build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user