This commit is contained in:
12
Dockerfile
12
Dockerfile
@ -1,6 +1,8 @@
|
||||
FROM alpine:latest
|
||||
RUN apk add --update --no-cache openssl-dev musl-dev zlib-dev curl tzdata
|
||||
FROM caddy:2-builder-alpine AS builder
|
||||
|
||||
WORKDIR /root/
|
||||
COPY caddy-server /root/
|
||||
CMD ["./caddy-server -conf Caddyfile"]
|
||||
RUN xcaddy build \
|
||||
--with github.com/caddy-dns/cloudflare
|
||||
|
||||
FROM caddy:2-alpine
|
||||
|
||||
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
||||
|
Reference in New Issue
Block a user