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

View File

@ -5,8 +5,11 @@ LABEL maintainer="Huadong Zuo <admin@zuohuadong.cn>"
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