mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-02-02 09:48:13 -05:00
Add Multiarch build Complete
This commit is contained in:
parent
fd54e46f36
commit
b6f9c29e81
@ -1,5 +1,7 @@
|
||||
FROM jc21/nginx-proxy-manager:2.9.18
|
||||
|
||||
ENV NPM_LANGUAGE="zh"
|
||||
|
||||
EXPOSE 80 81 443
|
||||
|
||||
RUN rm -rf /app/frontend
|
||||
|
21
scripts/buildx-zh
Normal file
21
scripts/buildx-zh
Normal 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"
|
Loading…
Reference in New Issue
Block a user