From e7a12feed01858e9112c88663281305227e397f5 Mon Sep 17 00:00:00 2001 From: Matthew Peveler Date: Mon, 1 Jun 2020 22:38:10 -0400 Subject: update Dockerfile to use Debian buster Signed-off-by: Matthew Peveler --- Dockerfile | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 2963e50..bab15f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" -- cgit v1.2.1