Created
June 20, 2020 12:52
-
-
Save akrabat/79674ab4c416d3ab47e8417bb47a75e3 to your computer and use it in GitHub Desktop.
Dockerfile for rst2pdf testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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