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

修改Dockerfile,使得构建出的docker镜像仅为17.4M #46

Merged
merged 2 commits into from
Feb 12, 2023

Conversation

fireinrain
Copy link
Contributor

你好,我尝试修改Dockerfile使得编译出的镜像非常小巧,以下是前后两个Dockerfile编译出的容器镜像大小对比:
wechatgpt v1.0.0 5ff463b6fa00 8 minutes ago 17.4MB
xiaomoinfo/wechatgpt latest c7d65dd2d105 43 hours ago 1.14GB
希望采纳改进,谢谢

@houko houko self-requested a review February 12, 2023 05:07
@houko
Copy link
Owner

houko commented Feb 12, 2023

感谢PR,不过我测试的时候报以下这个错误,不知道是不是我操作问题.

docker build -t wechat_test .

image

@fireinrain
Copy link
Contributor Author

我再检查检查

@fireinrain
Copy link
Contributor Author

感谢PR,不过我测试的时候报以下这个错误,不知道是不是我操作问题.

docker build -t wechat_test .
image

你的命令行是不是重复的打了docker run 呢, 我看好像是命令行的格式出错了 docker run -d -e image-name --name container-name

@houko
Copy link
Owner

houko commented Feb 12, 2023

感谢PR,不过我测试的时候报以下这个错误,不知道是不是我操作问题.

docker build -t wechat_test .
image

你的命令行是不是重复的打了docker run 呢, 我看好像是命令行的格式出错了 docker run -d -e image-name --name container-name

不好意思,my mistake, 再次感谢贡献代码。

@houko houko merged commit 9cdc7cf into houko:main Feb 12, 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

Successfully merging this pull request may close these issues.

2 participants