mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-15 06:13:01 +00:00
1.0 KiB
1.0 KiB
G4F - Docker Setup
Easily set up and run the G4F project using Docker without the hassle of manual dependency installation.
-
Prerequisites:
-
Clone the Repository:
git clone https://github.com/xtekky/gpt4free.git
- Navigate to the Project Directory:
cd gpt4free
- Build the Docker Image:
docker pull selenium/node-chrome
docker-compose build
- Start the Service:
docker-compose up
Your server will now be accessible at http://localhost:1337
. Interact with the API or run tests as usual.
To stop the Docker containers, simply run:
docker-compose down
Note
Changes made to local files reflect in the Docker container due to volume mapping in
docker-compose.yml
. However, if you add or remove dependencies, rebuild the Docker image usingdocker-compose build
.