[go: up one dir, main page]

File: Dockerfile

package info (click to toggle)
linkchecker 10.5.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,112 kB
  • sloc: python: 13,131; makefile: 134; sh: 71; xml: 36; sql: 20; javascript: 19; php: 2
file content (24 lines) | stat: -rw-r--r-- 752 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Use the maximum Python version tested
FROM python:3.12-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 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"]