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

remove mkdir, add set -ex #452

Merged
merged 1 commit into from
Nov 29, 2020
Merged

remove mkdir, add set -ex #452

merged 1 commit into from
Nov 29, 2020

Conversation

brownchow
Copy link
Contributor

  1. 根据 Docker文档 里的描述,WORKDIR 指令在目录不存在时会自动创建,因此没必要在 WORKDIR /build 之前执行 mkdir /build

  2. 执行 bash 脚本之前最好加上 set -ex,因为脚本执行过程中可能会出错,-e 在出错时会立即退出, -x 会打印出错误调用栈
    GNU手册

  3. docker build . -t mrs4s/go-cqhttp:v0.x 创建镜像没啥问题
    image

@Mrs4s Mrs4s merged commit ffb2fae into Mrs4s:master Nov 29, 2020
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