# Use the Node.js 18 base image FROM node:18 # Clone the ChatGPT repository from GitHub RUN git clone https://github.com/Niansuh/ChatGPT.git # Set the working directory inside the container WORKDIR "ChatGPT" # Install dependencies using npm RUN npm install # Build the project RUN npm run build # Define environment variables ENV CUSTOM_MODELS=-all,+Creative-g4t,+Balanced-g4t,+Precise-g4t,+Creative,+Balanced,+Precise,+Creative-g4t-offline,+Balanced-g4t-offline,+Precise-g4t-offline,+Creative-offline,+Balanced-offline,+Precise-offline # Expose port 3000 for accessing the application EXPOSE 3000 # Specify the command to run the application CMD ["npm", "run", "start"]