From 119e5f7f9b06d443ecbf012c8cea221ae8f7c37d Mon Sep 17 00:00:00 2001 From: Joshua Murithi Date: Tue, 27 Feb 2024 10:46:46 +0300 Subject: [PATCH] (OPS): docker file edit to accomodate chatbot Signed-off-by: Joshua Murithi --- Dockerfile | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index bdf5948..95643c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,21 @@ -FROM node:12 +FROM node:16 + WORKDIR /app -COPY package.json /app + +COPY package*.json ./ + RUN npm install -COPY . /app -CMD ["npm", "start"] \ No newline at end of file + +# Install Python and pip, install Python dependencies using pip, and clean up +RUN apt-get update && apt-get install -y python3 python3-pip && \ + pip3 install gradio_client && \ + apt-get clean + +# Copy your Node.js application code to the working directory +COPY . . + +# Expose any necessary ports +EXPOSE 3000 + +# Command to run your Node.js application +CMD ["npm", "start"]