mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-16 22:10:26 +00:00
Adding Dockerfile used by Docker containers which providing isolation from the OS.
This commit is contained in:
parent
22449abb91
commit
524788b53d
1 changed files with 17 additions and 0 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
FROM python:2
|
||||
|
||||
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"]
|
||||
Loading…
Reference in a new issue