From 9e4dfa2a0c926d0ad62f730b811884c437eb8e52 Mon Sep 17 00:00:00 2001 From: jake Date: Sat, 9 Feb 2019 19:28:29 +0800 Subject: [PATCH] fix caddy failed download (#1977) * fix caddy failed download * RUN command inline --- caddy/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/caddy/Dockerfile b/caddy/Dockerfile index c987b7e..1f2ed64 100644 --- a/caddy/Dockerfile +++ b/caddy/Dockerfile @@ -5,8 +5,11 @@ LABEL maintainer="Huadong Zuo " RUN apk add --no-cache \ openssh \ git \ - build-base && \ - go get github.com/abiosoft/caddyplug/caddyplug \ + build-base \ + && mkdir -p $GOPATH/src/golang.org/x/ \ + && cd $GOPATH/src/golang.org/x/ \ + && git clone https://github.com/golang/sys.git sys \ + && go get github.com/abiosoft/caddyplug/caddyplug \ && caddyplug install-caddy \ apk del build-base