Personal project to learn how to use chat gpt's API
Create image:
Clone the repository and then open a terminal pointing to it. Then, run the following command:
docker build -t 'gpt' .
Run the image:
After the image has been built, you should now be able to run it by executing the following command. You will want to mount the repository folder into it so you can work directly into the terminal
docker run --name "gpt" --volume "/path/to/repo/CGPT-API/:/mnt/CGPT-API/" -dt gpt
Access the container's BASH:
Once the image is running you will now be able to access its bash with:
docker exec -ti gpt bash
Once you are in, you can access the repo by changing into the directory
cd /mnt/CGPT-API/