CaddyDocker/Dockerfile
Fabian Stamm 3486be607c
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
First support for caddy 2
2020-06-18 11:47:31 +02:00

34 lines
578 B
Docker

FROM caddy:builder AS builder
RUN caddy-builder \
github.com/caddy-dns/cloudflare
FROM caddy:2.0.0
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
LABEL maintainer "Fabian Stamm <dev@fabianstamm.de>"
# RUN apk add --no-cache \
# ca-certificates \
# git \
# mailcap \
# openssh-client \
# tzdata \
# bash \
# curl
#Validate install
RUN caddy version
RUN caddy list-modules
EXPOSE 80 443 2019
VOLUME [ "/data", "/config" ]
WORKDIR /srv
COPY Caddyfile /etc/Caddyfile
CMD ["caddy", "run", "--config", "/etc/Caddyfile", "--adapter", "caddyfile"]