Renovator Bot
4e51bb4980
Co-authored-by: Renovator Bot <renovator@rknet.org> Co-committed-by: Renovator Bot <renovator@rknet.org>
41 lines
1.8 KiB
Docker
41 lines
1.8 KiB
Docker
FROM debian:bullseye-slim@sha256:5cf1d98cd0805951484f33b34c1ab25aac7007bb41c8b9901d97e4be3cf3ab04
|
|
|
|
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
|
|
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
|
|
LABEL org.opencontainers.image.title="link-validator"
|
|
LABEL org.opencontainers.image.url="https://gitea.rknet.org/docker/link-validator"
|
|
LABEL org.opencontainers.image.source="https://gitea.rknet.org/docker/link-validator"
|
|
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/docker/link-validator"
|
|
|
|
ARG CADDY_VERSION
|
|
ARG WAIT_FOR_VERSION
|
|
ARG CONTAINER_LIBRARY
|
|
|
|
# renovate: datasource=github-releases depName=caddyserver/caddy
|
|
ENV CADDY_VERSION="${CADDY_VERSION:-v2.6.0}"
|
|
# renovate: datasource=github-releases depName=thegeeklab/wait-for
|
|
ENV WAIT_FOR_VERSION="${WAIT_FOR_VERSION:-v0.2.0}"
|
|
# renovate: datasource=git-tags depName=https://gitea.rknet.org/docker/container-library
|
|
ENV CONTAINER_LIBRARY="${CONTAINER_LIBRARY:-v0.1.3}"
|
|
|
|
ENV LINK_VALIDATOR_BASE_DIR=/drone/src \
|
|
LINK_VALIDATOR_SERVER_PORT=8000
|
|
|
|
COPY overlay/ /
|
|
|
|
RUN apt-get update && apt-get install -y curl bash ncat media-types && \
|
|
curl -SsfL "https://gitea.rknet.org/docker/container-library/releases/download/${CONTAINER_LIBRARY}/container-library.tar.gz" | tar xz -C / && \
|
|
curl -sSL "https://github.com/caddyserver/caddy/releases/download/${CADDY_VERSION}/caddy_${CADDY_VERSION##v}_linux_amd64.tar.gz" | tar xz -C /usr/local/bin caddy && \
|
|
curl -SsfL -o /usr/local/bin/wait-for "https://github.com/thegeeklab/wait-for/releases/download/${WAIT_FOR_VERSION}/wait-for" && \
|
|
chmod 755 /usr/local/bin/caddy && \
|
|
chmod 755 /usr/local/bin/wait-for && \
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
rm -rf /tmp/* && \
|
|
rm -rf /root/.cache/
|
|
|
|
ADD src/build/linkcheck/linkcheck /usr/local/bin/linkcheck
|
|
|
|
USER root
|
|
CMD []
|
|
ENTRYPOINT ["/bin/link-validator"]
|