From 016c97d90299c27bb4c44fd3a83fcf00562937d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D8=A7=D9=85=DB=8C=D8=B1=D8=AD=D8=B3=DB=8C=D9=86=20=D9=85?= =?UTF-8?q?=D9=82=DB=8C=D8=B3=D9=87?= Date: Sat, 19 Mar 2022 04:35:42 +0330 Subject: [PATCH] fix memory heap js --- .env.production | 3 +-- Dockerfile | 1 + buildAndPushDocker.sh | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env.production b/.env.production index b8167d0..8d87cf9 100644 --- a/.env.production +++ b/.env.production @@ -1,2 +1 @@ -NEXT_PUBLIC_URL=amirmoghi3.ir -NODE_OPTIONS=--max_old_space_size=4098 \ No newline at end of file +NEXT_PUBLIC_URL=amirmoghi3.ir \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 35fad25..c144a48 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,7 @@ RUN yarn install --production FROM registry.vnfco.ir/library/node:14-alpine AS builder WORKDIR /app ARG NODE_ENV=production +ENV NODE_OPTIONS=--max_old_space_size=2048 COPY . . COPY --from=deps /app/node_modules ./node_modules RUN yarn run build diff --git a/buildAndPushDocker.sh b/buildAndPushDocker.sh index c5345b6..22e3a83 100644 --- a/buildAndPushDocker.sh +++ b/buildAndPushDocker.sh @@ -9,6 +9,6 @@ echo "version : $version" docker build -t registry.vnfco.ir/amirmoghi3/me:latest -t registry.vnfco.ir/amirmoghi3/me:$version . || exit 1; -docker push registry.vnfco.ir/ig/website:latest || exit 1; -docker push registry.vnfco.ir/ig/website:$version || exit 1; +docker push registry.vnfco.ir/amirmoghi3/me:latest || exit 1; +docker push registry.vnfco.ir/amirmoghi3/me:$version || exit 1;