caddy (sha256:973e4c852a009438fab61389caf2a9f1ebbcb06920e41cde438f5f7d40ce0c37)
Published 2026-11-10 11:27:41 +00:00 by andi
Installation
docker pull git.andibase.de/andi/caddy@sha256:973e4c852a009438fab61389caf2a9f1ebbcb06920e41cde438f5f7d40ce0c37sha256:973e4c852a009438fab61389caf2a9f1ebbcb06920e41cde438f5f7d40ce0c37Image layers
| ADD alpine-minirootfs-3.24.4-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| ENV LANG=C.UTF-8 |
| RUN /bin/sh -c set -eux; apk add --no-cache ca-certificates tzdata ; # buildkit |
| ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305 |
| ENV PYTHON_VERSION=3.13.18 |
| ENV PYTHON_SHA256=abb0102e6d4ae027509bcb82327d9dd85515b44a3ba8ad538cfc5e9847029f68 |
| RUN /bin/sh -c set -eux; apk add --no-cache --virtual .build-deps bluez-dev bzip2-dev dpkg-dev dpkg findutils g++ gcc gdbm-dev gnupg libc-dev libffi-dev libnsl-dev libtirpc-dev linux-headers make ncurses-dev openssl-dev pax-utils readline-dev sqlite-dev tar tcl-dev tk tk-dev util-linux-dev xz xz-dev zlib-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc"; GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY"; gpg --batch --verify python.tar.xz.asc python.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME" python.tar.xz.asc; mkdir -p /usr/src/python; tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; rm python.tar.xz; cd /usr/src/python; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-option-checking=fatal --enable-shared $(test "${gnuArch%%-*}" != 'riscv64' && echo '--with-lto') --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000"; LDFLAGS="${LDFLAGS:-} -Wl,--strip-all"; arch="$(apk --print-arch)"; case "$arch" in x86_64|aarch64) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"; ;; x86) ;; *) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer"; ;; esac; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-} -Wl,-rpath='\$\$ORIGIN/../lib'" python ; make install; cd /; rm -rf /usr/src/python; find /usr/local -depth \( \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \) -exec rm -rf '{}' + ; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' | tr ',' '\n' | sort -u | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' | xargs -rt apk add --no-network --virtual .python-rundeps ; apk del --no-network .build-deps; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 --version # buildkit |
| RUN /bin/sh -c set -eux; for src in idle3 pip3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "$src" "/usr/local/bin/$dst"; done # buildkit |
| CMD ["python3"] |
| LABEL maintainer=Andi <info@andibase.de> |
| LABEL description=Caddy Control |
| ENV PUID=1000 TZ=Europe/Berlin MAXMIND_ACCOUNT_ID= MAXMIND_LICENSE_KEY= CADDY_ADMIN_URL=http://caddy:2019 NTFY_TOPIC=andibase-security PGID=1000 PYTHONPATH=/ PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 STREAMLIT_SERVER_PORT=8501 STREAMLIT_SERVER_ADDRESS=0.0.0.0 STREAMLIT_SERVER_HEADLESS=true STREAMLIT_BROWSER_GATHER_USAGE_STATS=false |
| RUN /bin/sh -c apk upgrade --no-cache && apk add --no-cache su-exec supervisor bash curl jq sqlite git tzdata # buildkit |
| COPY /usr/local/bin/crowdsec /usr/local/bin/crowdsec # buildkit |
| COPY /usr/local/bin/cscli /usr/local/bin/cscli # buildkit |
| COPY /usr/local/bin/geoipupdate /usr/local/bin/geoipupdate # buildkit |
| RUN /bin/sh -c mkdir -p /etc/crowdsec/hub /etc/crowdsec/notifications /var/lib/crowdsec/data /var/log/crowdsec /usr/local/lib/crowdsec/plugins && echo "simulation: false" > /etc/crowdsec/simulation.yaml && touch /etc/crowdsec/profiles.yaml # buildkit |
| RUN /bin/sh -c mkdir -p /root/.streamlit && touch /root/.streamlit/secrets.toml && chmod 644 /root/.streamlit/secrets.toml # buildkit |
| COPY docker/requirements.txt /tmp/requirements.txt # buildkit |
| RUN /bin/sh -c pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir -r /tmp/requirements.txt && rm /tmp/requirements.txt # buildkit |
| COPY app/ /app/ # buildkit |
| COPY tests/ /tests/ # buildkit |
| COPY docker/supervisord.conf /etc/supervisord.conf # buildkit |
| RUN /bin/sh -c mkdir -p /scripts # buildkit |
| COPY docker/start.sh /scripts/start.sh # buildkit |
| RUN /bin/sh -c chmod +x /scripts/start.sh # buildkit |
| RUN /bin/sh -c mkdir -p /caddy_log /caddy_config /data /geoip # buildkit |
| VOLUME [/caddy_log /caddy_config /data /geoip /scripts] |
| EXPOSE [8501/tcp] |
| ENTRYPOINT ["/scripts/start.sh"] |
| COPY /gates-ok /gates-ok # buildkit |
Labels
| Key | Value |
|---|---|
| description | Caddy Control |
| maintainer | Andi <info@andibase.de> |
| org.opencontainers.image.created | 2026-11-10T11:27:34Z |
| org.opencontainers.image.revision | 0a34bf92040655d0ce70ef4b54a8f665b81da2b3aeb622c2085077d5b49098d0 |
| org.opencontainers.image.source | git.andibase.de/andi/caddy |
Details
2026-11-10 11:27:41 +00:00
Versions (22)
View all
Container
0
OCI / Docker
linux/amd64
297 MiB
caddycontrol-git-3e21273
2026-11-10
caddycontrol-git-27c8a7a
2026-11-10
caddycontrol-git-56bb51c
2026-11-10
caddycontrol-git-a58a756
2026-11-10
caddycontrol-git-6dae8e5
2026-11-09