blob: 2963e506ed21ab488daba61ebf7c9265ef2f52d7 (
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
|
# 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 Stretch (slim) using https://hub.docker.com/_/python/ as the "base"
FROM python:${PYTHON_VERSION}-stretch
# Install asciidoc dependencies
# install the necessary stuff for asciidoc now that python has been built
RUN 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 \
make \
python3 \
source-highlight \
time \
texlive-latex-base \
unzip \
xsltproc \
&& \
apt-get -t stretch-backports install -y --no-install-recommends lilypond && \
apt-get clean && rm -rf /var/lib/apt/lists/*
COPY . "/srv/asciidoc"
WORKDIR "/srv/asciidoc"
|