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