From 036d41b9f469e2ee5a111f4c77370d508e0c1df6 Mon Sep 17 00:00:00 2001 From: hlohaus <983577+hlohaus@users.noreply.github.com> Date: Sat, 25 Jan 2025 09:10:18 +0100 Subject: Update base image of main docker image --- README.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 70889214..debd5940 100644 --- a/README.md +++ b/README.md @@ -99,22 +99,24 @@ Is your site on this repository and you want to take it down? Send an email to t ### 🐳 Using Docker 1. **Install Docker:** [Download and install Docker](https://docs.docker.com/get-docker/). 2. **Set Up Directories:** Before running the container, make sure the necessary data directories exist or can be created. For example, you can create and set ownership on these directories by running: - ```bash +```bash mkdir -p ${PWD}/har_and_cookies ${PWD}/generated_images - chown -R 1000:1000 ${PWD}/har_and_cookies ${PWD}/generated_images - ``` + sudo chown -R 1200:1201 ${PWD}/har_and_cookies ${PWD}/generated_images +``` 3. **Run the Docker Container:** Use the following commands to pull the latest image and start the container: - ```bash +```bash docker pull hlohaus789/g4f - docker run -p 8080:8080 -p 1337:1337 -p 7900:7900 \ + docker run -p 8080:8080 -p 7900:7900 \ --shm-size="2g" \ -v ${PWD}/har_and_cookies:/app/har_and_cookies \ -v ${PWD}/generated_images:/app/generated_images \ hlohaus789/g4f:latest - ``` +``` -4. **Running the Slim Docker Image:** Use the following command to run the Slim Docker image. This command also updates the `g4f` package at startup and installs any additional dependencies: - ```bash +4. **Running the Slim Docker Image:** And use the following commands to run the Slim Docker image. This command also updates the `g4f` package at startup and installs any additional dependencies: +```bash + mkdir -p ${PWD}/har_and_cookies ${PWD}/generated_images + chown -R 1000:1000 ${PWD}/har_and_cookies ${PWD}/generated_images docker run \ -p 1337:1337 \ -v ${PWD}/har_and_cookies:/app/har_and_cookies \ @@ -126,8 +128,8 @@ Is your site on this repository and you want to take it down? Send an email to t ``` 5. **Access the Client Interface:** - - **To use the included client, navigate to:** [http://localhost:8080/chat/](http://localhost:8080/chat/) or [http://localhost:1337/chat/](http://localhost:1337/chat/) - - **Or set the API base for your client to:** [http://localhost:1337/v1](http://localhost:1337/v1) + - **To use the included client, navigate to:** [http://localhost:8080/chat/](http://localhost:8080/chat/) + - **Or set the API base for your client to:** [http://localhost:8080/v1](http://localhost:8080/v1) 6. **(Optional) Provider Login:** If required, you can access the container's desktop here: http://localhost:7900/?autoconnect=1&resize=scale&password=secret for provider login purposes. -- cgit v1.2.3