Skip to content

Commit

Permalink
add caddr-docker-proxy image
Browse files Browse the repository at this point in the history
  • Loading branch information
tmacro committed Dec 2, 2023
1 parent c899659 commit 01b2445
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
29 changes: 29 additions & 0 deletions images/caddy-docker-proxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
FROM golang:alpine as builder

ARG XCADDY_VERSION=v0.3.5
ARG CADDY_VERSION=v2.7.5
ARG CADDY_DOCKER_PROXY_VERSION=v2.8.10

RUN apk add --update git

# Install xcaddy

RUN go install github.com/caddyserver/xcaddy/cmd/xcaddy@${XCADDY_VERSION}

# Build caddy

RUN xcaddy build ${CADDY_VERSION} \
--with github.com/caddy-dns/cloudflare \
--with github.com/lucaslorentz/caddy-docker-proxy/v2@${CADDY_DOCKER_PROXY_VERSION}

FROM alpine

ENV XDG_DATA_HOME /data

ENV XDG_CONFIG_HOME /config

COPY --from=builder /go/caddy /usr/bin/caddy

ENTRYPOINT ["/usr/bin/caddy"]

CMD ["run"]
4 changes: 4 additions & 0 deletions images/caddy-docker-proxy/image.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[image]
registry = ghcr.io
repository = tmacro/img
platforms = linux/amd64

0 comments on commit 01b2445

Please sign in to comment.