diff options
author | Matthew Peveler <matt.peveler@gmail.com> | 2020-06-01 22:38:10 -0400 |
---|---|---|
committer | Matthew Peveler <matt.peveler@gmail.com> | 2020-06-01 22:38:10 -0400 |
commit | e7a12feed01858e9112c88663281305227e397f5 (patch) | |
tree | 68d30e45f4b29180f33234d2288dff61b2874471 /Dockerfile | |
parent | a915b93cd679cfe4ec254149f983162ec00f61bb (diff) | |
download | asciidoc-py3-e7a12feed01858e9112c88663281305227e397f5.tar.gz |
update Dockerfile to use Debian buster
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -3,13 +3,14 @@ # 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 +# These images are based off Debian Buster (slim) using https://hub.docker.com/_/python/ as the "base" +FROM python:${PYTHON_VERSION}-slim-buster -# 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 \ +# 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 /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 \ @@ -22,16 +23,16 @@ RUN echo "deb http://ftp.debian.org/debian stretch-backports main" >> /etc/apt/s highlight \ imagemagick \ libxml2-utils \ + lilypond \ 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/* + && apt-get clean && rm -rf /var/lib/apt/lists/* COPY . "/srv/asciidoc" WORKDIR "/srv/asciidoc" + +CMD "/bin/bash" |