suggest larger nodejs max heap
This commit is contained in:
parent
e33f778192
commit
d2cd24bfd2
|
@ -10,4 +10,5 @@ COPY Dockerfile greeting.md* .env* ./
|
|||
RUN npm run build
|
||||
EXPOSE 7860
|
||||
ENV NODE_ENV=production
|
||||
CMD [ "npm", "start" ]
|
||||
# Huggigface free VMs have 16GB of RAM so we can be greedy
|
||||
CMD [ "npm", "start", "--", "--max-old-space-size=12288" ]
|
||||
|
|
|
@ -32,7 +32,7 @@ COPY Dockerfile greeting.md* .env* ./
|
|||
RUN npm run build
|
||||
EXPOSE 7860
|
||||
ENV NODE_ENV=production
|
||||
CMD [ "npm", "start" ]
|
||||
CMD [ "npm", "start", "--", "--max-old-space-size=12288" ]
|
||||
```
|
||||
- Click "Commit new file to `main`" to save the Dockerfile.
|
||||
|
||||
|
|
Loading…
Reference in New Issue