caddy-docker (latest)

Published 2024-06-26 13:57:55 +02:00 by xeovalyte in xeovalyte/caddy-docker

Installation

docker pull gitea.xeovalyte.dev/xeovalyte/caddy-docker:latest
sha256:f4534522d9ec7a65eb2104b29e7c65cef79ec74acd163ad371de8ea551db842b

About this package

a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go

Image Layers

ADD file:8729f9c0258836b640e9e789c7ab029cf4547e0596557d54dd4a4d7d8e4a785f in /
CMD ["/bin/sh"]
RUN /bin/sh -c apk add --no-cache ca-certificates libcap mailcap # buildkit
RUN /bin/sh -c set -eux; mkdir -p /config/caddy /data/caddy /etc/caddy /usr/share/caddy ; wget -O /etc/caddy/Caddyfile "https://github.com/caddyserver/dist/raw/509c30cecd3cbc4012f6b1cc88d8f3f000fb06e4/config/Caddyfile"; wget -O /usr/share/caddy/index.html "https://github.com/caddyserver/dist/raw/509c30cecd3cbc4012f6b1cc88d8f3f000fb06e4/welcome/index.html" # buildkit
ENV CADDY_VERSION=v2.7.6
RUN /bin/sh -c set -eux; apkArch="$(apk --print-arch)"; case "$apkArch" in x86_64) binArch='amd64'; checksum='b74311ec8263f30f6d36e5c8be151e8bc092b377789a55300d5671238b9043de5bd6db2bcefae32aa1e6fe94c47bbf02982c44a7871e5777b2596fdb20907cbf' ;; armhf) binArch='armv6'; checksum='88756642ca412db3a8da7a40b518861a6f524a8ac704021e8451d3cb38746f24243b1e561f4eec07e1575200d06bfd098783d2b7ee7ee07a971aed1c677da6e6' ;; armv7) binArch='armv7'; checksum='118776e879c280556abb7c03ff7c0081eda23c2aee0472aef176f733785e9501defaeaf334cd2443e31294809beafaea831d2e695aa68045160082aa3a966e2f' ;; aarch64) binArch='arm64'; checksum='62252ade5e8dcec13a66154ee1978d959370be049cce52e7c4edefff14ef70bbb21630e3735092719bc3c31214e89dff99e55970ff0adec8ac0a94c6415b059a' ;; ppc64el|ppc64le) binArch='ppc64le'; checksum='65d27fe53f5e4fa79f3476f8902071c907aab74db1a2616342be3714d4252219fbb53b174ef588e20c51e7cfac84376c7a0a608091c2fe83b31dbf59dabeb237' ;; s390x) binArch='s390x'; checksum='c562190962a2db0248a4190616dd2ebaa02df2cf62f1a2c71f9d9de18af2a297df8000a06a11e8d3929dfd64f0c081d1e61961687ca220007459f2dbd0be2c81' ;; *) echo >&2 "error: unsupported architecture ($apkArch)"; exit 1 ;; esac; wget -O /tmp/caddy.tar.gz "https://github.com/caddyserver/caddy/releases/download/v2.7.6/caddy_2.7.6_linux_${binArch}.tar.gz"; echo "$checksum /tmp/caddy.tar.gz" | sha512sum -c; tar x -z -f /tmp/caddy.tar.gz -C /usr/bin caddy; rm -f /tmp/caddy.tar.gz; setcap cap_net_bind_service=+ep /usr/bin/caddy; chmod +x /usr/bin/caddy; caddy version # buildkit
ENV XDG_CONFIG_HOME=/config
ENV XDG_DATA_HOME=/data
LABEL org.opencontainers.image.version=v2.7.6
LABEL org.opencontainers.image.title=Caddy
LABEL org.opencontainers.image.description=a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go
LABEL org.opencontainers.image.url=https://caddyserver.com
LABEL org.opencontainers.image.documentation=https://caddyserver.com/docs
LABEL org.opencontainers.image.vendor=Light Code Labs
LABEL org.opencontainers.image.licenses=Apache-2.0
LABEL org.opencontainers.image.source=https://github.com/caddyserver/caddy-docker
EXPOSE map[80/tcp:{}]
EXPOSE map[443/tcp:{}]
EXPOSE map[443/udp:{}]
EXPOSE map[2019/tcp:{}]
WORKDIR /srv
CMD ["caddy" "run" "--config" "/etc/caddy/Caddyfile" "--adapter" "caddyfile"]
COPY /usr/bin/caddy /usr/bin/caddy # buildkit

Labels

Key Value
org.opencontainers.image.description a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go
org.opencontainers.image.documentation https://caddyserver.com/docs
org.opencontainers.image.licenses Apache-2.0
org.opencontainers.image.source https://github.com/caddyserver/caddy-docker
org.opencontainers.image.title Caddy
org.opencontainers.image.url https://caddyserver.com
org.opencontainers.image.vendor Light Code Labs
org.opencontainers.image.version v2.7.6
Details
Container
2024-06-26 13:57:55 +02:00
5
OCI / Docker
linux/amd64
Apache-2.0
31 MiB
Versions (1) View all
latest 2024-06-26