From ef6b12fdb70f7cd2a0c09071b53c2c7700820485 Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Fri, 22 Nov 2024 15:30:16 -0800 Subject: [PATCH] fix: fix the port used by Node.js chatbot example Signed-off-by: Michael Dawson --- .../natural_language_processing/chatbot-nodejs/ai-lab.yaml | 2 +- .../chatbot-nodejs/app/Containerfile | 4 ++-- .../chatbot-nodejs/app/package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes/natural_language_processing/chatbot-nodejs/ai-lab.yaml b/recipes/natural_language_processing/chatbot-nodejs/ai-lab.yaml index f653cfad..7792ef2a 100644 --- a/recipes/natural_language_processing/chatbot-nodejs/ai-lab.yaml +++ b/recipes/natural_language_processing/chatbot-nodejs/ai-lab.yaml @@ -15,7 +15,7 @@ application: - amd64 ports: - 8001 - image: quay.io/ai-lab/llamacppp_python:latest + image: quay.io/ai-lab/llamacpp_python:latest - name: nodejs-chat-app contextdir: app containerfile: Containerfile diff --git a/recipes/natural_language_processing/chatbot-nodejs/app/Containerfile b/recipes/natural_language_processing/chatbot-nodejs/app/Containerfile index eb0fe542..97291dca 100644 --- a/recipes/natural_language_processing/chatbot-nodejs/app/Containerfile +++ b/recipes/natural_language_processing/chatbot-nodejs/app/Containerfile @@ -49,8 +49,8 @@ COPY --from=builder --chown=1001:1001 /app/.next/static ./.next/static USER 1001 -EXPOSE 8051 +EXPOSE 8501 -ENV PORT 8051 +ENV PORT 8501 CMD ["sh", "-c", "HOSTNAME=localhost node server"] diff --git a/recipes/natural_language_processing/chatbot-nodejs/app/package.json b/recipes/natural_language_processing/chatbot-nodejs/app/package.json index 2a8c0909..b5670de0 100644 --- a/recipes/natural_language_processing/chatbot-nodejs/app/package.json +++ b/recipes/natural_language_processing/chatbot-nodejs/app/package.json @@ -30,7 +30,7 @@ "@langchain/core": "^0.2.14" }, "scripts": { - "dev": "next dev -p 8051", + "dev": "next dev -p 8501", "build": "next build", "lint": "next lint" },