Upgrading to Caddy 2.1
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Fabian Stamm 2020-06-26 16:41:42 +02:00
parent 3486be607c
commit 5d57259aef

View File

@ -1,22 +1,26 @@
FROM caddy:builder AS builder ARG version=2.1.0-beta.1
RUN caddy-builder \ FROM golang:1.14-alpine3.11 AS builder
github.com/caddy-dns/cloudflare ARG version
FROM caddy:2.0.0 WORKDIR /src
COPY --from=builder /usr/bin/caddy /usr/bin/caddy RUN apk add --no-cache \
git \
ca-certificates
RUN go get -u github.com/caddyserver/xcaddy/cmd/xcaddy
ENV CADDY_VERSION="v${version}"
RUN xcaddy build --with github.com/caddy-dns/cloudflare --output /usr/bin/caddy
RUN /usr/bin/caddy version
FROM caddy:${version}
LABEL maintainer "Fabian Stamm <dev@fabianstamm.de>" LABEL maintainer "Fabian Stamm <dev@fabianstamm.de>"
# RUN apk add --no-cache \
# ca-certificates \ COPY --from=builder /usr/bin/caddy /usr/bin/caddy
# git \
# mailcap \
# openssh-client \
# tzdata \
# bash \
# curl
#Validate install #Validate install