File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM alpine:3.5
1+ FROM golang
22
3- MAINTAINER Eric Pfeiffer <computerfr33k@users.noreply.github.com>
3+ ARG version= "0.10.9"
44
5- ENV caddy_version=0.10.5
6- ARG plugins=http.git
5+ ARG plugins="git"
76
8- LABEL caddy_version= "$caddy_version" architecture= "amd64"
7+ # # If you come frome china, please ues it.
98
10- RUN apk update \
11- && apk upgrade \
12- && apk add --no-cache openssh-client git tar curl
9+ # RUN echo "172.217.6.127 golang.org" >> /etc/hosts
1310
14- RUN curl --silent --show-error --fail --location \
15- --header "Accept: application/tar+gzip, application/x-gzip, application/octet-stream" -o - \
16- "https://caddyserver.com/download/linux/amd64?plugins=${plugins}" \
17- | tar --no-same-owner -C /usr/bin/ -xz caddy \
18- && mv /usr/bin/caddy /usr/bin/caddy \
19- && chmod 0755 /usr/bin/caddy
11+ RUN go get github.com/abiosoft/caddyplug/caddyplug \
12+ && caddyplug install-caddy \
13+ && caddyplug install git
14+ RUN caddy --version
2015
2116EXPOSE 80 443 2015
2217
You can’t perform that action at this time.
0 commit comments