Spaces:
Runtime error
Runtime error
:pencil: [Doc] Readme: Docker build and run commands
Browse files
README.md
CHANGED
@@ -13,16 +13,28 @@ After completing some key features, I would focus on the quick deployment of thi
|
|
13 |
pip install -r requirements.txt
|
14 |
```
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
## Run
|
17 |
|
|
|
|
|
18 |
```bash
|
19 |
python -m apis.chat_api
|
20 |
```
|
21 |
|
22 |
-
|
23 |
|
24 |
```bash
|
25 |
-
|
|
|
|
|
|
|
|
|
26 |
```
|
27 |
|
28 |
## Example
|
|
|
13 |
pip install -r requirements.txt
|
14 |
```
|
15 |
|
16 |
+
## Docker Build
|
17 |
+
|
18 |
+
```bash
|
19 |
+
sudo docker build -t bing-chat-api:1.0 . --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_proxy
|
20 |
+
```
|
21 |
+
|
22 |
## Run
|
23 |
|
24 |
+
Command Line:
|
25 |
+
|
26 |
```bash
|
27 |
python -m apis.chat_api
|
28 |
```
|
29 |
|
30 |
+
Docker run:
|
31 |
|
32 |
```bash
|
33 |
+
# no proxy
|
34 |
+
sudo docker run -p 22222:22222 bing-chat-api:1.0
|
35 |
+
|
36 |
+
# with proxy
|
37 |
+
sudo docker run -p 22222:22222 --env http_proxy="http://<server>:<port>" bing-chat-api:1.0
|
38 |
```
|
39 |
|
40 |
## Example
|