Skip to content

cavaldos/ChatGPT

Repository files navigation

Chat GPT clone

{: width="200px"} {: width="200px"} {: width="200px"}

Install

  1. Clone repository
 git clone https://github.com/cavaldos/ChatGPT.git
 npm install # pnpm install
 npm run dev # npm run dev

Docker

Build docker

1.Build your updated version of the image, using the docker build command.

docker build -t chat-gpt .

2.Start a new container using the updated code.

docker run -dp 3000:3000  chat-gpt .

Remove the old container

1.Get the ID of the container by using the docker ps command.

docker ps -a
  1. Use the docker stop command to stop the container. Replace <the-container-id> with the ID from docker ps.
 docker stop <the-container-id>

3.Once the container has stopped, you can remove it by using the docker rm command.

 docker rm <the-container-id>