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