tpai / summary-gpt-bot

An AI-powered text summarization Telegram bot that generates concise summaries of text, URLs, PDFs, and YouTube videos.
https://t.me/summarygptenbot
180 stars 31 forks source link

Support for linux/arm64/v8 #10

Closed DevDema closed 2 weeks ago

DevDema commented 2 months ago

This Docker image may not have been built for my architecture: linux/arm64/v8, as explained in these logs:

[+] Running 2/0
 ✔ Container summary-bot-summary-gpt-bot-1                                                                                                                        Recreated0.1s 
 ! summary-gpt-bot The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s 
Attaching to summary-gpt-bot-1

Is there any plan to add support for this particular architecture?

gianlucaalfa commented 2 months ago

Hello , I fixed this on my Raspberry Pi by installing

make build-essential

Add them to the dockerfile, in the apt line

tpai commented 2 months ago

@DevDema Hi, you can also specify the platform for docker.

export DOCKER_DEFAULT_PLATFORM=linux/amd64

That's what I do on my Macbook M1.

DevDema commented 2 months ago

Thanks guys, I was suggesting to the author a more permanent solution.

tbdavid2019 commented 2 weeks ago

Dockerfile 的第一行改成這個 , 即可支援 arm64 FROM --platform=linux/arm64 debian:11-slim AS build

在跑 docker build -t summary-gpt-bot .

tpai commented 2 weeks ago

@DevDema It's now support both linux/amd64 and linux/arm64.

image image