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

如果想build一个在 M芯片的macos下运行的镜像,可参考如下 #185

Open
huaxuehuaxue opened this issue Dec 13, 2024 · 0 comments

Comments

@huaxuehuaxue
Copy link

做以下修改:
一、Dockerfile:
./configure --prefix=/usr &&
修改为如下:
./configure --build=aarch64-unknown-linux-gnu --prefix=/usr && \

二、build.sh
docker build -f Dockerfile -t ${DOCKER_NAME}:${TAG1} -t ${DOCKER_NAME}:${TAG2} .
修改为:
docker buildx build --platform linux/arm64 -f Dockerfile -t ${DOCKER_NAME}:${TAG1} -t ${DOCKER_NAME}:${TAG2} .

注意:如果是Mysql8+,为了避免连接报错,需要在Dockerfile中增加:pip install cryptography && \

@huaxuehuaxue huaxuehuaxue changed the title 如果像build一个在 M芯片的macos下运行的镜像,可参考如下 如果想build一个在 M芯片的macos下运行的镜像,可参考如下 Dec 13, 2024
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

1 participant