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;