Skip to content

Commit

Permalink
update node to fix oom diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
pofider committed Nov 6, 2022
1 parent b24039e commit 484b7b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN mkdir -p /app
RUN rm -rf /tmp/*

ENV NVM_DIR /root/.nvm
ENV NODE_VERSION 16.15.0
ENV NODE_VERSION 16.18.1

# node
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash && \
Expand All @@ -35,4 +35,4 @@ RUN npm install --production && \
rm -rf /tmp/*


CMD ["node", "--max-old-space-size=400", "--diagnostic-dir=/memory-dump", "--heapsnapshot-near-heap-limit=3", "server.js"]
CMD ["node", "--max-old-space-size=400", "--diagnostic-dir=/memory-dump", "--heapsnapshot-near-heap-limit=2", "server.js"]

0 comments on commit 484b7b5

Please sign in to comment.