mirror of
https://github.com/gosticks/caddy-docker.git
synced 2026-08-14 21:40:26 +00:00
26 lines
736 B
Docker
26 lines
736 B
Docker
FROM alpine:3.6
|
|
LABEL maintainer "Abiola Ibrahim <abiola89@gmail.com>"
|
|
|
|
LABEL caddy_version="0.10.8" architecture="amd64"
|
|
|
|
ARG plugins=http.git
|
|
|
|
RUN apk add --no-cache openssh-client git tar curl
|
|
|
|
RUN curl --silent --show-error --fail --location \
|
|
--header "Accept: application/tar+gzip, application/x-gzip, application/octet-stream" -o - \
|
|
"https://caddyserver.com/download/linux/amd64?plugins=${plugins}" \
|
|
| tar --no-same-owner -C /usr/bin/ -xz caddy \
|
|
&& chmod 0755 /usr/bin/caddy \
|
|
&& /usr/bin/caddy -version
|
|
|
|
EXPOSE 80 443 2015
|
|
VOLUME /root/.caddy /srv
|
|
WORKDIR /srv
|
|
|
|
COPY Caddyfile /etc/Caddyfile
|
|
COPY index.html /srv/index.html
|
|
|
|
ENTRYPOINT ["/usr/bin/caddy"]
|
|
CMD ["--conf", "/etc/Caddyfile", "--log", "stdout"]
|