-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
57 lines (39 loc) · 2.07 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# (C) Serge Victor 2020-2024
#################################################################################################
# STAGE 1/2
#################################################################################################
# we always try to operate on recent ubuntu LTS
FROM ubuntu:jammy
LABEL maintainer="[email protected]"
LABEL version="0.99"
LABEL description="LDP Builder as a Docker image"
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
# installing required packages and cleaning up after
RUN apt-get -y install git texlive-font-utils linuxdoc-tools-text linuxdoc-tools-latex docbook-dsssl docbook-xsl docbook-utils htmldoc htmldoc-common docbook-xsl html2text docbook5-xml docbook-xsl-ns jing asciidoc libxml2-utils python3-stdeb fakeroot python3-all python3-networkx python3-nose fop ldp-docbook-xsl ldp-docbook-dsssl docbook opensp dh-python git python-all
# getting our builder soft
RUN git clone https://github.com/tLDP/python-tldp
RUN cd python-tldp && rm -rf debian && python3 setup.py --command-packages=stdeb.command bdist_deb
RUN dpkg -i python-tldp/deb_dist/python3-tldp_*_all.deb
# we are done?
RUN ldptool --dump-cfg
#################################################################################################
# STAGE 2/2
#################################################################################################
FROM ubuntu:jammy
LABEL maintainer="[email protected]"
LABEL version="0.99"
LABEL description="LDP Builder as a Docker image"
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y git rsync asciidoc docbook docbook-xsl-ns docbook5-xml fop html2text htmldoc jing ldp-docbook-dsssl ldp-docbook-xsl linuxdoc-tools-latex linuxdoc-tools-text python3 python3-networkx python3-nose sgml2x texlive-font-utils xsltproc
COPY --from=0 python-tldp/deb_dist/python3-tldp_*_all.deb .
RUN apt-get install ./python3-tldp_*_all.deb --fix-broken -y
RUN apt-get clean
RUN apt-get autoremove -y
RUN rm -rf /var/lib/apt/lists/*
# Add directory lister
ADD directory-indexer-single-level.py /bin
# we are done?
RUN ldptool --dump-cfg
# the happy end.