Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose.yml 直接下载后部署报错 build修改成image: 'babaohuang/geminiprochat:latest' 搞定 #40

Closed
1 task
brucelau1987cn opened this issue Dec 20, 2023 · 2 comments

Comments

@brucelau1987cn
Copy link

How is Gemini Pro Chat deployed?

Node

Describe the bug

[+] Building 0.1s (2/2) FINISHED docker:default
=> [geminiprochat internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2B 0.0s
=> [geminiprochat internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount3775294946/Dockerfile: no such file or directory

Console Logs

No response

Participation

  • I am willing to submit a pull request for this issue.
@antergone
Copy link
Contributor

经过实际测试,最新版本没有问题,你给出的命令是拉取其他开发者发布的远端的镜像。
可以尝试以下命令:

# 清理缓存
docker builder prune
# 启动服务
docker-compose up

@brucelau1987cn
Copy link
Author

version: '3'

services:
geminiprochat:
image: 'babaohuang/geminiprochat:latest'
container_name: geminiprochat
restart: always
ports:
- "3000:3000"
environment:
- GEMINI_API_KEY=YOUR_GEMINI_API_KEY
# - HTTPS_PROXY=YOUR_HTTPS_PROXY
# - API_BASE_URL=YOUR_GEMINI_API_BASE_URL
# - HEAD_SCRIPTS=YOUR_HEAD_SCRIPTS
# - PUBLIC_SECRET_KEY=YOUR_SECRET_KEY
# - SITE_PASSWORD=YOUR_SITE_PASSWORD
# - OPENAI_API_MODEL=YOUR_OPENAI_API_MODEL

改成这样 完美解决

@brucelau1987cn brucelau1987cn changed the title docker-compose.yml 直接下载后部署报错 修改container_name: geminiprochat 为image: howie6879/geminiprochat:v0.1.0 后部署正常 docker-compose.yml 直接下载后部署报错 build修改成image: 'babaohuang/geminiprochat:latest' 搞定 Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants