Skip to content

Commit

Permalink
(OPS): docker file edit to accomodate chatbot
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Murithi <[email protected]>
  • Loading branch information
Murithijoshua committed Feb 27, 2024
1 parent bb80679 commit 119e5f7
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

# 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"]

0 comments on commit 119e5f7

Please sign in to comment.