Modify the memory of nodejs used from 8192MB to 2048MB

Signed-off-by: Yogi_Wang <yawang@vmware.com>
This commit is contained in:
Yogi_Wang 2019-11-06 16:37:21 +08:00
parent bb8fe1d059
commit cddc1149f1

View File

@ -20,7 +20,7 @@ COPY src/portal /build_dir
RUN ls -la \
&& npm run build_lib \
&& npm run link_lib \
&& node --max_old_space_size=8192 'node_modules/@angular/cli/bin/ng' build --prod
&& node --max_old_space_size=2048 'node_modules/@angular/cli/bin/ng' build --prod
FROM photon:2.0