mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-28 19:40:28 +00:00
Baked acme.sh into binary and use it when required, removed docker healthcheck
This commit is contained in:
@@ -10,6 +10,7 @@ BUILD_DATE=$(date '+%Y-%m-%d %T %Z')
|
||||
NOW=$(date --rfc-3339=s)
|
||||
|
||||
cd $DIR/../..
|
||||
BACKEND=$(realpath "${DIR}/../../backend")
|
||||
|
||||
if [ "$BUILD_COMMIT" = "" ]; then
|
||||
BUILD_COMMIT=$(git log -n 1 --format=%h)
|
||||
@@ -59,7 +60,16 @@ build_backend() {
|
||||
./cmd/server
|
||||
}
|
||||
|
||||
get_acmesh() {
|
||||
ACME_FILE="${BACKEND}/embed/acme.sh"
|
||||
echo -e "${BLUE}❯ ${CYAN}Fetching latest acme.sh ...${RESET}"
|
||||
curl -o "${ACME_FILE}" 'https://raw.githubusercontent.com/acmesh-official/acme.sh/master/acme.sh'
|
||||
chmod +x "${ACME_FILE}"
|
||||
echo -e "${BLUE}❯ ${CYAN}Saved as ${YELLOW}${ACME_FILE}${RESET}"
|
||||
}
|
||||
|
||||
docker pull "${IMAGE}"
|
||||
get_acmesh
|
||||
|
||||
build_backend "darwin" "amd64"
|
||||
build_backend "darwin" "arm64"
|
||||
|
Reference in New Issue
Block a user