2023-02-09 07:04:39 +00:00
|
|
|
FROM debian:bullseye-slim@sha256:8eaee63a5ea83744e62d5bf88e7d472d7f19b5feda3bfc6a2304cc074f269269
|
2020-05-31 19:43:54 +00:00
|
|
|
|
2020-12-20 21:47:45 +00:00
|
|
|
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"
|
2020-05-31 19:43:54 +00:00
|
|
|
|
2022-05-20 13:26:49 +00:00
|
|
|
ARG CADDY_VERSION
|
2022-05-18 15:42:55 +00:00
|
|
|
ARG WAIT_FOR_VERSION
|
|
|
|
ARG CONTAINER_LIBRARY
|
|
|
|
|
2020-12-30 17:46:58 +00:00
|
|
|
# renovate: datasource=github-releases depName=caddyserver/caddy
|
2023-02-14 20:04:51 +00:00
|
|
|
ENV CADDY_VERSION="${CADDY_VERSION:-v2.6.4}"
|
2022-05-18 15:42:55 +00:00
|
|
|
# renovate: datasource=github-releases depName=thegeeklab/wait-for
|
2023-01-14 23:04:50 +00:00
|
|
|
ENV WAIT_FOR_VERSION="${WAIT_FOR_VERSION:-v0.3.0}"
|
2022-11-02 21:33:15 +00:00
|
|
|
# renovate: datasource=github-releases depName=thegeeklab/retry
|
2023-01-14 23:04:50 +00:00
|
|
|
ENV RETRY_VERSION="${RETRY_VERSION:-v0.4.0}"
|
2022-11-03 21:03:02 +00:00
|
|
|
# renovate: datasource=github-releases depName=raviqqe/muffet
|
2023-02-08 20:49:26 +00:00
|
|
|
ENV MUFFET_VERSION="${MUFFET_VERSION:-v2.7.0}"
|
2022-05-18 15:42:55 +00:00
|
|
|
# renovate: datasource=git-tags depName=https://gitea.rknet.org/docker/container-library
|
|
|
|
ENV CONTAINER_LIBRARY="${CONTAINER_LIBRARY:-v0.1.3}"
|
2020-05-31 19:43:54 +00:00
|
|
|
|
2020-10-18 19:51:50 +00:00
|
|
|
ENV LINK_VALIDATOR_BASE_DIR=/drone/src \
|
2022-11-03 21:03:02 +00:00
|
|
|
LINK_VALIDATOR_SERVER_PORT=8000 \
|
|
|
|
LINK_VALIDATOR_RETRIES=0
|
2020-05-31 19:43:54 +00:00
|
|
|
|
|
|
|
COPY overlay/ /
|
|
|
|
|
2022-05-18 15:42:55 +00:00
|
|
|
RUN apt-get update && apt-get install -y curl bash ncat media-types && \
|
2022-06-21 13:15:20 +00:00
|
|
|
curl -SsfL "https://gitea.rknet.org/docker/container-library/releases/download/${CONTAINER_LIBRARY}/container-library.tar.gz" | tar xz -C / && \
|
2020-12-30 17:46:58 +00:00
|
|
|
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 && \
|
2022-11-03 21:03:02 +00:00
|
|
|
curl -SsfL "https://github.com/raviqqe/muffet/releases/download/${MUFFET_VERSION}/muffet_${MUFFET_VERSION##v}_Linux_x86_64.tar.gz" | tar xz -C /usr/local/bin muffet && \
|
2022-06-21 13:15:20 +00:00
|
|
|
curl -SsfL -o /usr/local/bin/wait-for "https://github.com/thegeeklab/wait-for/releases/download/${WAIT_FOR_VERSION}/wait-for" && \
|
2022-11-02 21:33:15 +00:00
|
|
|
curl -SsfL -o /usr/local/bin/retry "https://github.com/thegeeklab/retry/releases/download/${RETRY_VERSION}/retry" && \
|
2020-12-30 17:46:58 +00:00
|
|
|
chmod 755 /usr/local/bin/caddy && \
|
2022-11-03 21:03:02 +00:00
|
|
|
chmod 755 /usr/local/bin/muffet && \
|
2022-05-18 15:42:55 +00:00
|
|
|
chmod 755 /usr/local/bin/wait-for && \
|
2022-11-02 21:33:15 +00:00
|
|
|
chmod 755 /usr/local/bin/retry && \
|
2022-05-18 15:42:55 +00:00
|
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
|
|
rm -rf /tmp/* && \
|
|
|
|
rm -rf /root/.cache/
|
|
|
|
|
2020-05-31 19:43:54 +00:00
|
|
|
USER root
|
|
|
|
CMD []
|
|
|
|
ENTRYPOINT ["/bin/link-validator"]
|