nginx-proxy-manager-zh/scripts/buildx-zh
2022-05-16 19:25:52 +08:00

22 lines
441 B
Bash

#!/bin/bash
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
. "$DIR/frontend-build"
cd "${DIR}/.."
# Buildx Builder
docker buildx create --name "Buildx-NPM" || echo
docker buildx use "Buildx-NPM"
docker buildx build \
-t chishin/nginx-proxy-manager-zh:2.9.18 \
-f docker/Dockerfile-zh \
--platform linux/amd64,linux/arm64,linux/arm/7 \
--progress plain \
. --push
docker buildx rm "Buildx-NPM"
echo "Multiarch build Complete"