WongSaang / chatgpt-ui

A ChatGPT web client that supports multiple users, multiple languages, and multiple database connections for persistent data storage. Provides Docker images and quick deployment scripts.
https://wongsaang.github.io/chatgpt-ui/
MIT License
1.51k stars 333 forks source link

#50 add platform to docker-compose #70

Closed Paramon closed 1 year ago

WongSaang commented 1 year ago

Sorry, I'm not an expert in this field. May I ask if running it on an ARM architecture device will solve the problem ?

Paramon commented 1 year ago

Sorry, I'm not an expert in this field. May I ask if running it on an ARM architecture device will solve the problem ?

On M1 MacBook Pro, I've had success using docker run --platform linux/amd64

But in Docker Hub(https://hub.docker.com/r/wongsaang/chatgpt-ui-client/tags) you provide only linux/amd64

You as the owner can build and push images for other platform.

You should have the docker buildx installed. If you don't have the docker-desktop you can download the binary buildx from github: https://github.com/docker/buildx/

Build the image by passing the list of architecture

Try this:

docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t wongsaang/chatgpt-ui-client:latest --push .
WongSaang commented 1 year ago

Thank you so much!

nmfretz commented 1 year ago

Hi @WongSaang, are you considering pushing a multi-arch image to docker hub for both arm64 and amd64 like @Paramon described? It would be fantastic to have an official version available from you that can run on both device architectures.