Skip to content

Commit 62b754a

Browse files
authored
Added information on multiarchitecture builds
Added command to run for multiarch builds Noted that the images will not be visible by running `docker images`
1 parent 5b48b3f commit 62b754a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

openaictl/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- **Customizable**: Configure model, token limits, and API key via the `.env` file.
1313
- **Secure API Key Handling**: Loads OpenAI API key and other configurations from the `.env` file.
1414
- **Dockerized**: Fully containerized for ease of use across different systems and architectures.
15+
- **Multiple Architecture Support**: Runs on linux/armv7, linux/amd64, linux/arm64
1516

1617
---
1718

@@ -79,7 +80,16 @@ If running locally (not with Docker):
7980
docker build -t openaictl .
8081
```
8182

82-
2. **Run the Chatbot**:
83+
**For Multiple Architecture build on your Machine**:
84+
85+
```bash
86+
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t <your container registry>/openaictl:<tag> --push .
87+
```
88+
89+
> **Note**: Multiarchitecture builds will not be visible by using `docker images` command.
90+
> Your registry will show the different images.
91+
92+
3. **Run the Chatbot**:
8393

8494
```bash
8595
docker run --rm -it --env-file .env openaictl

0 commit comments

Comments
 (0)