Add Multiarch build Complete

This commit is contained in:
chishin 2022-05-16 19:25:52 +08:00
parent fd54e46f36
commit b6f9c29e81
2 changed files with 23 additions and 0 deletions

View File

@ -1,5 +1,7 @@
FROM jc21/nginx-proxy-manager:2.9.18 FROM jc21/nginx-proxy-manager:2.9.18
ENV NPM_LANGUAGE="zh"
EXPOSE 80 81 443 EXPOSE 80 81 443
RUN rm -rf /app/frontend RUN rm -rf /app/frontend

21
scripts/buildx-zh Normal file
View File

@ -0,0 +1,21 @@
#!/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"