|
@@ -3,7 +3,7 @@ FROM golang:alpine AS builder
|
|
|
RUN apk add --no-cach git && \
|
|
|
go get -u github.com/caddyserver/xcaddy/cmd/xcaddy && \
|
|
|
git clone -b naive https://github.com/klzgrad/forwardproxy && \
|
|
|
- export version=$(curl -fsSL https://api.github.com/repos/caddyserver/caddy/releases/latest | grep '"tag_name":' | head -n 1 | sed -E 's/.*"([^"]+)".*/\1/') && \
|
|
|
+ export version=$(wget -qO- https://api.github.com/repos/caddyserver/caddy/releases/latest | grep '"tag_name":' | head -n 1 | sed -E 's/.*"([^"]+)".*/\1/') && \
|
|
|
# xcaddy build ${version} --output ./caddy_${version} \
|
|
|
xcaddy build ${version} \
|
|
|
--with github.com/abiosoft/caddy-exec \
|