Skip to content

Instantly share code, notes, and snippets.

@akrabat
Created June 20, 2020 12:52
Show Gist options
  • Save akrabat/79674ab4c416d3ab47e8417bb47a75e3 to your computer and use it in GitHub Desktop.
Save akrabat/79674ab4c416d3ab47e8417bb47a75e3 to your computer and use it in GitHub Desktop.
Dockerfile for rst2pdf testing
# To run:
#
# docker build -t rst2pdfdev .
# docker run --rm -v $(pwd)/rst2pdf:/rst2pdf -it rst2pdfdev bash
#
# Now, in the bash prompt:
#
# pip3 install --upgrade setuptools
# pip3 install pytest
# pip3 install -c requirements.txt -e .[tests,sphinx,images,svgsupport,aafiguresupport,mathsupport,rawhtmlsupport]
#
FROM ubuntu:20.04
# sed -i 's@# deb-src http://archive.ubuntu.com/ubuntu/ bionic main restricted@deb-src http://archive.ubuntu.com/ubuntu/ bionic main restricted@' /etc/apt/sources.list \
RUN \
apt-get update && apt-get -y upgrade
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata
RUN \
TZ="Europe/London"; DEBIAN_FRONTEND="noninteractive"; apt-get -y install \
ca-certificates \
openssl \
libssl1.1 \
python3 \
python3-pip \
python-is-python3
RUN \
apt-get -y install \
inkscape \
texlive-latex-base \
dvipng \
plantuml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment