From b92c818d8fe9f877fbc65864ed65fa7e298e6734 Mon Sep 17 00:00:00 2001 From: casjay Date: Thu, 16 Mar 2023 11:46:44 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index ce23171..c57587d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,20 +29,16 @@ ENV XDG_DATA_HOME /data RUN set -ex \ apk -U upgrade && apk add jq curl --no-cache ; \ - export XCADDY_SETCAP=1; \ - export version=$(curl -q -LSsf "https://api.github.com/repos/caddyserver/caddy/releases/latest" | jq -r .tag_name | grep '^' || exit 5); \ + export version=$(curl -q -LSsf "https://api.github.com/repos/caddyserver/caddy/releases/latest" | jq -r .tag_name | grep '^'); \ echo ">>>>>>>>>>>>>>> ${version} ###############" ; \ go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest || exit 10; \ - xcaddy build ${version} \ - --output /caddy \ + export XCADDY_SETCAP=1; xcaddy build ${version} \ + --output /usr/local/bin/caddy \ --with github.com/kirsch33/realip \ - --with github.com/caddy-dns/alidns \ - --with github.com/caddy-dns/dnspod \ --with github.com/caddy-dns/rfc2136 \ --with github.com/caddy-dns/route53 \ --with github.com/caddy-dns/cloudflare \ --with github.com/caddyserver/replace-response \ - --with github.com/caddyserver/transform-encoder \ --with github.com/porech/caddy-maxmind-geolocation \ --with github.com/hairyhenderson/caddy-teapot-module