Skip to content

Instantly share code, notes, and snippets.

@y1zhou
Created June 30, 2022 15:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save y1zhou/7d7c1b98009a34cf094a6635199136c3 to your computer and use it in GitHub Desktop.
Save y1zhou/7d7c1b98009a34cf094a6635199136c3 to your computer and use it in GitHub Desktop.
EasyConnect Docker build script for M1 Macs
git clone -b thread_reuse https://github.com/hagb/docker-easyconnect.git
cd docker-easyconnect
git submodule update --init --recursive
docker image build -f Dockerfile.compile -t compile .
EC_VER=7.6.7 # 替换成需要的版本
DOCKER_USERNAME="your-name"
docker image build \
--build-arg EC_URL=$(cat ec_urls/${EC_VER}.txt) \
-t "${DOCKER_USERNAME}/docker-easyconnect:${EC_VER}-aarch64" \
-f Dockerfile .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment