返回提交历史
Modified
README.md
+6
-6
XFEstudio/gpt4free
Update README.md
ae354390
代码差异
1 个文件
+6
-6
@@ -94,8 +94,8 @@ Is your site on this repository and you want to take it down? Send an email to t
94
94
1. **Install Docker:** [Download and install Docker](https://docs.docker.com/get-docker/).
95
95
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:
96
96
```bash
97
mkdir -p ${PWD}/har_and_cookies ${PWD}/generated_images
98
sudo chown -R 1200:1201 ${PWD}/har_and_cookies ${PWD}/generated_images
97
mkdir -p ${PWD}/har_and_cookies ${PWD}/generated_media
98
sudo chown -R 1200:1201 ${PWD}/har_and_cookies ${PWD}/generated_media
99
99
```
100
100
3. **Run the Docker Container:** Use the following commands to pull the latest image and start the container (Only x64):
101
101
```bash
@@ -103,18 +103,18 @@ docker pull hlohaus789/g4f
103
103
docker run -p 8080:8080 -p 7900:7900 \
104
104
--shm-size="2g" \
105
105
-v ${PWD}/har_and_cookies:/app/har_and_cookies \
106
-v ${PWD}/generated_images:/app/generated_images \
106
-v ${PWD}/generated_media:/app/generated_media \
107
107
hlohaus789/g4f:latest
108
108
```
109
109
110
110
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: (x64 and arm64)
111
111
```bash
112
mkdir -p ${PWD}/har_and_cookies ${PWD}/generated_images
113
chown -R 1000:1000 ${PWD}/har_and_cookies ${PWD}/generated_images
112
mkdir -p ${PWD}/har_and_cookies ${PWD}/generated_media
113
chown -R 1000:1000 ${PWD}/har_and_cookies ${PWD}/generated_media
114
114
docker run \
115
115
-p 1337:1337 \
116
116
-v ${PWD}/har_and_cookies:/app/har_and_cookies \
117
-v ${PWD}/generated_images:/app/generated_images \
117
-v ${PWD}/generated_media:/app/generated_media \
118
118
hlohaus789/g4f:latest-slim \
119
119
/bin/sh -c 'rm -rf /app/g4f && pip install -U g4f[slim] && python -m g4f --debug'
120
120
```