Skip to content

Instantly share code, notes, and snippets.

@jxlwqq
Last active October 27, 2021 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jxlwqq/83ed16be8c994b87e9da5ac785ddc948 to your computer and use it in GitHub Desktop.
Save jxlwqq/83ed16be8c994b87e9da5ac785ddc948 to your computer and use it in GitHub Desktop.
多架构平台镜像构建
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 .
# 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