linkchecker/Dockerfile
Chris Mayo 10f3d33041 Finish documenting the use of XDG_CONFIG_HOME and XDG_DATA_HOME
Introduced by:
a03e2e4a ("use xdg dirs for config & data", 2017-10-17)
2022-08-23 19:21:53 +01:00

25 lines
764 B
Docker

# Use the maximum Python version tested
FROM python:3.10-slim
# linkchecker creates $XDG_CONFIG_HOME/linkchecker/ (700) containing linkcheckerrc et al
ENV HOME /tmp
# Enables access to local files when run with -v "$PWD":/mnt
VOLUME /mnt
WORKDIR /mnt
# Dependencies change on their own schedule so install them separately
RUN pip install --no-cache-dir \
beautifulsoup4 dnspython pyxdg requests polib
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/*
ENTRYPOINT ["linkchecker"]