fix: adjust memory settings in Dockerfile

This commit is contained in:
2025-12-29 11:03:13 +01:00
parent 10c1c4d69e
commit 661f57cace

View File

@@ -33,8 +33,8 @@ RUN npm install
RUN if [ -z "$GIT_REPO_URL" ]; then echo "Copying local files..."; fi RUN if [ -z "$GIT_REPO_URL" ]; then echo "Copying local files..."; fi
COPY . . COPY . .
# Set Node options for build to prevent memory issues # Set Node options for build to prevent memory issues (adjusted for 3.8GB VPS RAM)
ENV NODE_OPTIONS="--max-old-space-size=4096" ENV NODE_OPTIONS="--max-old-space-size=2048"
ENV NEXT_TELEMETRY_DISABLED=1 ENV NEXT_TELEMETRY_DISABLED=1
# Build the application for production # Build the application for production