a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go
ADD file:32ff5e7a78b890996ee4681cc0a26185d3e9acdb4eb1e2aaccb2411f922fed6b in / |
CMD ["/bin/sh"] |
/bin/sh -c apk add --no-cache ca-certificates libcap mailcap |
/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/5910351159c2995a9a1c911d7879de6ff598d905/config/Caddyfile"; wget -O /usr/share/caddy/index.html "https://github.com/caddyserver/dist/raw/5910351159c2995a9a1c911d7879de6ff598d905/welcome/index.html" |
ENV CADDY_VERSION=v2.7.2 |
/bin/sh -c set -eux; apkArch="$(apk --print-arch)"; case "$apkArch" in x86_64) binArch='amd64'; checksum='b6690cd345f016b4795195f30e626a54644e66f95dc106fb72b44e009aad87433258cd091dc72d8ae357e1b2081d173da528d3f745fe5eb12286c20aa919a21c' ;; armhf) binArch='armv6'; checksum='7911c1a7129550e8f712d6a9c8ec695e2ec8fa025109b360a94275fe50ae9b5039099464e02e30030e5349fa33106600d05623d60aa3bc1d520697c5b07db120' ;; armv7) binArch='armv7'; checksum='fa8596887d1ea7652caea888511377c7c6ea4492889ec0ab1bf76c366f9e52247d41844bffc2f961cc4d06607d65982d8443651ef53f348c7d60f4fb98efbdb9' ;; aarch64) binArch='arm64'; checksum='48db86b764e23b892547741e30bf7c95561e804ec999c42fc1dac237ba8b0797abea76556e45c3b231f7acf303e3511507268c62f88076fd31891fc3a03564a7' ;; ppc64el|ppc64le) binArch='ppc64le'; checksum='049f0b0529e3e9334388fd099f03fa48a2f5fa2d17b00f46566117397a5468acbc392782abfe815f15f0ef6d8e3f1055bd1d275a927a42590782b83e01259a79' ;; s390x) binArch='s390x'; checksum='3dadb51b4b1e03b884ba00a96fa7371b80aaf97f820bde7e15d2be745b02b91fa00b66422088bc94725ab86600206c458dc3a393e74f9192ef7e76d6fa54cb1f' ;; *) echo >&2 "error: unsupported architecture ($apkArch)"; exit 1 ;; esac; wget -O /tmp/caddy.tar.gz "https://github.com/caddyserver/caddy/releases/download/v2.7.2/caddy_2.7.2_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 |
ENV XDG_CONFIG_HOME=/config |
ENV XDG_DATA_HOME=/data |
LABEL org.opencontainers.image.version=v2.7.2 |
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 80 |
EXPOSE 443 |
EXPOSE 443/udp |
EXPOSE 2019 |
WORKDIR /srv |
CMD ["caddy" "run" "--config" "/etc/caddy/Caddyfile" "--adapter" "caddyfile"] |
COPY index.html /usr/share/caddy # buildkit |
COPY styles.css /usr/share/caddy # buildkit |
COPY robots.txt /usr/share/caddy # buildkit |
COPY face.jpg /usr/share/caddy # buildkit |
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.2 |