-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[image] | ||
registry = ghcr.io | ||
repository = tmacro/img | ||
platforms = linux/amd64 |