File: Dockerfile

package info (click to toggle)
linkchecker 9.4.0-2
  • links: PTS
  • area: main
  • in suites: buster, sid
  • size: 3,140 kB
  • sloc: python: 14,200; lex: 1,141; yacc: 832; makefile: 266; sh: 128; ansic: 114; sql: 20; xml: 13; awk: 4; php: 2
file content (20 lines) | stat: -rw-r--r-- 643 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:2

# needed to allow linkchecker create plugin directory and initial configuration file in "home" dir
ENV HOME /tmp

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/linkcheck/linkchecker.git@master \
    && apt-get -y -qq purge git \
    && apt-get autoremove -y -qq \
    && apt-get clean -y -qq all \
    && rm -rf /var/lib/apt/lists/* /usr/share/doc /usr/share/locale /usr/share/man

# /mnt enables linkchecker to access to access files on local machine if needed
VOLUME /mnt

WORKDIR /mnt

ENTRYPOINT ["linkchecker"]