fix caddy failed download (#1977)

* fix caddy  failed download
* RUN command inline
This commit is contained in:
jake 2019-02-09 19:28:29 +08:00 committed by Shao Yu-Lung (Allen)
parent 99f7e65c99
commit 9e4dfa2a0c
1 changed files with 5 additions and 2 deletions

View File

@ -5,8 +5,11 @@ LABEL maintainer="Huadong Zuo <admin@zuohuadong.cn>"
RUN apk add --no-cache \ RUN apk add --no-cache \
openssh \ openssh \
git \ git \
build-base && \ build-base \
go get github.com/abiosoft/caddyplug/caddyplug \ && 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 \ && caddyplug install-caddy \
apk del build-base apk del build-base