fix memory heap js

master
Amir Hossein Moghiseh 2022-03-19 04:35:42 +03:30
parent 8510d95080
commit 016c97d902
3 changed files with 4 additions and 4 deletions

View File

@ -1,2 +1 @@
NEXT_PUBLIC_URL=amirmoghi3.ir
NODE_OPTIONS=--max_old_space_size=4098
NEXT_PUBLIC_URL=amirmoghi3.ir

View File

@ -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

View File

@ -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;