Debian Codegraph @

Dockerfile

raw
1 # Use the maximum Python version tested
2 FROM python:3.12-slim
3
4 # linkchecker creates $XDG_CONFIG_HOME/linkchecker/ (700) containing linkcheckerrc et al
5 ENV HOME /tmp
6
7 # Enables access to local files when run with -v "$PWD":/mnt
8 VOLUME /mnt
9
10 WORKDIR /mnt
11
12 # Dependencies change on their own schedule so install them separately
13 RUN pip install --no-cache-dir beautifulsoup4 dnspython requests polib
14
15 RUN set -x \
16 && apt-get update -qq \
17 && apt-get install -y -qq --no-install-recommends git \
18 && pip install --no-cache-dir git+https://github.com/linkchecker/linkchecker.git \
19 && apt-get -y -qq purge git \
20 && apt-get autoremove -y -qq \
21 && apt-get clean -y -qq all \
22 && rm -rf /var/lib/apt/lists/*
23
24 ENTRYPOINT ["linkchecker"]