From fdc8d7665f8e3c732d904b766c6980816d3ff8fa Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Wed, 8 Mar 2023 11:50:01 +0800 Subject: [PATCH] docs: update docker build command --- CMakeLists.txt | 2 +- README.md | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d93e542..058ea70 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,7 +31,7 @@ endmacro() set(VERSION "") git_tag(VERSION) if(VERSION STREQUAL "") # without git tag - message(FATAL_ERROR "Git command not found") + message(FATAL_ERROR "Unable to get version information") endif() ############################################################### diff --git a/README.md b/README.md index f8d6ef0..368cd8e 100644 --- a/README.md +++ b/README.md @@ -605,16 +605,20 @@ sys 0m0.005s ```bash $ git clone https://github.com/dnomd343/ClearDNS.git -··· $ cd ./ClearDNS/ $ docker build -t cleardns . -··· ``` ### 交叉构建 ```bash -docker buildx build -t dnomd343/cleardns --platform="linux/amd64,linux/arm64" https://github.com/dnomd343/ClearDNS.git --push +$ git clone https://github.com/dnomd343/ClearDNS.git +$ cd ./ClearDNS/ +$ docker buildx build + -t dnomd343/cleardns \ + -t ghcr.io/dnomd343/cleardns \ + -t registry.cn-shenzhen.aliyuncs.com/dnomd343/cleardns \ + --platform="linux/amd64,linux/arm64" . --push ``` ## 许可证