fix memory heap js
parent
8510d95080
commit
016c97d902
|
@ -1,2 +1 @@
|
||||||
NEXT_PUBLIC_URL=amirmoghi3.ir
|
NEXT_PUBLIC_URL=amirmoghi3.ir
|
||||||
NODE_OPTIONS=--max_old_space_size=4098
|
|
|
@ -8,6 +8,7 @@ RUN yarn install --production
|
||||||
FROM registry.vnfco.ir/library/node:14-alpine AS builder
|
FROM registry.vnfco.ir/library/node:14-alpine AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ARG NODE_ENV=production
|
ARG NODE_ENV=production
|
||||||
|
ENV NODE_OPTIONS=--max_old_space_size=2048
|
||||||
COPY . .
|
COPY . .
|
||||||
COPY --from=deps /app/node_modules ./node_modules
|
COPY --from=deps /app/node_modules ./node_modules
|
||||||
RUN yarn run build
|
RUN yarn run build
|
||||||
|
|
|
@ -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 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/amirmoghi3/me:latest || exit 1;
|
||||||
docker push registry.vnfco.ir/ig/website:$version || exit 1;
|
docker push registry.vnfco.ir/amirmoghi3/me:$version || exit 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue