Last active
October 27, 2021 07:51
-
-
Save jxlwqq/83ed16be8c994b87e9da5ac785ddc948 to your computer and use it in GitHub Desktop.
多架构平台镜像构建
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker buildx create --name mybuilder | |
docker buildx use mybuilder | |
docker buildx build --platform linux/amd64,linux/arm64 --tag DOCKER_HUB_ID/PROJECT_NAME:TAG_NAME . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# syntax=docker/dockerfile:1 | |
FROM --platform=$TARGETPLATFORM php:8.0-fpm | |
WORKDIR /app | |
COPY index.php /app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment