2022-04-12 18:24:49 +00:00
|
|
|
# Use the maximum Python version tested
|
2023-12-11 19:26:59 +00:00
|
|
|
FROM python:3.12-slim
|
2018-03-14 07:56:00 +00:00
|
|
|
|
2022-08-23 18:21:53 +00:00
|
|
|
# linkchecker creates $XDG_CONFIG_HOME/linkchecker/ (700) containing linkcheckerrc et al
|
2018-03-25 08:55:22 +00:00
|
|
|
ENV HOME /tmp
|
|
|
|
|
|
2021-11-25 19:33:29 +00:00
|
|
|
# Enables access to local files when run with -v "$PWD":/mnt
|
2018-03-14 07:56:00 +00:00
|
|
|
VOLUME /mnt
|
|
|
|
|
|
|
|
|
|
WORKDIR /mnt
|
|
|
|
|
|
2021-11-25 19:33:29 +00:00
|
|
|
# Dependencies change on their own schedule so install them separately
|
2022-08-23 18:26:15 +00:00
|
|
|
RUN pip install --no-cache-dir beautifulsoup4 dnspython requests polib
|
2021-11-25 19:33:29 +00:00
|
|
|
|
2021-11-28 18:55:46 +00:00
|
|
|
RUN set -x \
|
|
|
|
|
&& apt-get update -qq \
|
|
|
|
|
&& apt-get install -y -qq --no-install-recommends git \
|
|
|
|
|
&& pip install --no-cache-dir git+https://github.com/linkchecker/linkchecker.git \
|
|
|
|
|
&& apt-get -y -qq purge git \
|
|
|
|
|
&& apt-get autoremove -y -qq \
|
|
|
|
|
&& apt-get clean -y -qq all \
|
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2021-11-25 19:33:29 +00:00
|
|
|
|
2018-03-14 07:56:00 +00:00
|
|
|
ENTRYPOINT ["linkchecker"]
|