corrects nodejs max heap memory config

This commit is contained in:
nai-degen
2024-01-07 16:16:27 -06:00
parent 4ffa7fb12b
commit 936d3c0721
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -11,4 +11,5 @@ RUN npm run build
EXPOSE 7860 EXPOSE 7860
ENV NODE_ENV=production ENV NODE_ENV=production
# Huggigface free VMs have 16GB of RAM so we can be greedy # 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" ]
+2 -1
View File
@@ -32,7 +32,8 @@ COPY Dockerfile greeting.md* .env* ./
RUN npm run build RUN npm run build
EXPOSE 7860 EXPOSE 7860
ENV NODE_ENV=production 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. - Click "Commit new file to `main`" to save the Dockerfile.