linkchecker/Dockerfile
Chris Mayo 4418236f56 Don't remove directories from Docker image
/var/lib/apt, /usr/share/locale, /usr/share/man are now empty.
/usr/share/doc is almost empty and populated by the base image.
2020-09-01 19:24:10 +01:00

14 lines
378 B
Docker

FROM python:3-slim
# needed to allow linkchecker create plugin directory and initial configuration file in "home" dir
ENV HOME /tmp
RUN set -x \
&& pip install --no-cache-dir https://github.com/linkchecker/linkchecker/archive/master.zip
# /mnt enables linkchecker to access to access files on local machine if needed
VOLUME /mnt
WORKDIR /mnt
ENTRYPOINT ["linkchecker"]