summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 628ce309dd4a6dcc7f97685d61ba75ee5b9cc1b1 (plain)
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
# You can specify a specific python version to use by doing
# --build-arg PYTHON_VERSION=<version> on the build command,
# This defaults to 3.6 if nothing is given.
ARG PYTHON_VERSION=3.6

# These images are based off Debian Buster (slim) using https://hub.docker.com/_/python/ as the "base"
FROM python:${PYTHON_VERSION}-slim-buster

WORKDIR "/srv/asciidoc"
COPY . "/srv/asciidoc"

# Install the dependencies that asciidoc needs. The mkdir line is needed as something pulls in java jdk and it
# will fail if that folder does not already exist because...java.
RUN mkdir -p /usr/share/man/man1/ \
    && echo "deb http://ftp.debian.org/debian stretch-backports main" >> /etc/apt/sources.list && apt-get update \
    && apt-get install -y --no-install-recommends \
        autoconf \
        dblatex \
        docbook-xml \
        docbook-xsl \
        dvipng \
        epubcheck \
        fop \
        git \
        graphviz \
        highlight \
        imagemagick \
        libxml2-utils \
        lilypond \
        make \
        python3 \
        source-highlight \
        time \
        texlive-latex-base \
        unzip \
        zip \
    && apt-get clean && rm -rf /var/lib/apt/lists/* \
    && autoconf \
    && ./configure

CMD "/bin/bash"