caddy/Containerfile.multiarch
Renovator Bot 3c59eda321
All checks were successful
ci/woodpecker/push/build-package Pipeline was successful
ci/woodpecker/push/build-container Pipeline was successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/notify Pipeline was successful
chore(docker): update docker.io/caddy:2.8.4-alpine docker digest to 33937b9 (#41)
Reviewed-on: #41
Co-authored-by: Renovator Bot <renovator@rknet.org>
Co-committed-by: Renovator Bot <renovator@rknet.org>
2024-10-13 14:12:41 +00:00

42 lines
1.5 KiB
Plaintext

FROM docker.io/caddy:2.8.4-alpine@sha256:33937b9d51461ea87794350c1c09ce53f327802508929d78f3b5642533f2f7db
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
LABEL org.opencontainers.image.title="Caddy"
LABEL org.opencontainers.image.url="https://gitea.rknet.org/container/caddy"
LABEL org.opencontainers.image.source="https://gitea.rknet.org/container/caddy"
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/container/caddy"
ARG TARGETOS
ARG TARGETARCH
ARG TARGETVARIANT
ARG GOMPLATE_VERSION
# renovate: datasource=github-releases depName=hairyhenderson/gomplate
ENV GOMPLATE_VERSION="${GOMPLATE_VERSION:-v4.1.0}"
RUN addgroup -g 101 -S caddy && \
adduser -S -D -H -u 101 -h /var/www -s /sbin/nologin -G caddy -g caddy caddy && \
apk --update add --virtual .build-deps curl && \
apk --no-cache upgrade libcrypto3 libssl3 && \
curl -SsfL -o /usr/local/bin/gomplate "https://github.com/hairyhenderson/gomplate/releases/download/${GOMPLATE_VERSION}/gomplate_${TARGETOS}-${TARGETARCH}${TARGETVARIANT}" && \
chmod 755 /usr/local/bin/gomplate && \
chown -R caddy:caddy /config /data /etc/caddy /srv && \
chmod -R 750 /config /data /etc/caddy /srv && \
apk del .build-deps && \
rm -rf /var/cache/apk/* && \
rm -rf /tmp/*
ADD overlay/ /
EXPOSE 80
EXPOSE 443
EXPOSE 443/udp
EXPOSE 2019
USER caddy
WORKDIR /srv
CMD ["caddy", "run", "--config", "/etc/caddy/Caddyfile", "--adapter", "caddyfile"]