Skip to content

Commit 525c431

Browse files
author
zuohuadong
authored
use caddy in Apache-2.0
see: https://caddyserver.com/products/licenses so, I use caddypulg, it is free
1 parent 01c358b commit 525c431

1 file changed

Lines changed: 9 additions & 14 deletions

File tree

caddy/Dockerfile

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
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

2116
EXPOSE 80 443 2015
2217

0 commit comments

Comments
 (0)