forked from OpenLogicProject/OpenLogic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (26 loc) · 1.34 KB
/
Dockerfile
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
# Use ubuntu trusty as the base image
FROM ubuntu:xenial
# Add a backport of TeX Live 2016 packages, for LTS releases, to the apt sources
RUN echo -e '\ndeb http://ppa.launchpad.net/jonathonf/texlive-2017/ubuntu xenial main\ndeb-src http://ppa.launchpad.net/jonathonf/texlive-2017/ubuntu xenial main' /etc/apt/sources.list
# Install dependencies for building the open-logic-debug.pdf file
RUN apt-get update && apt-get install -y --no-install-recommends \
texlive-base \
texlive-fonts-recommended \
texlive-generic-extra \
texlive-latex-recommended \
texlive-latex-extra \
texlive-math-extra \
latexmk \
# Additionally install these to packages to fix a bug saying tikz.sty is missing
texlive-pictures \
pgf
# Set the working directory to wd and copy the git repository into it
WORKDIR /wd
VOLUME ["/wd"]
COPY . .
# This is used to fix a bug saying gitinfo2.sty cannot be found
#ADD http://www.pirbot.com/mirrors/ctan/macros/latex/contrib/gitinfo2/gitinfo2.sty gitinfo2.sty
ADD http://mirrors.ctan.org/graphics/pgf/contrib/prooftrees/prooftrees.sty prooftrees.sty
ADD http://www.tug.org/texlive/devsrc/Master/texmf-dist/tex/latex/forest/forest.sty forest.sty
# Try generating open-logic-debug.pdf
CMD ["latexmk", "-dvi-", "-pdf", "-pdflatex=pdflatex -interaction nonstopmode -halt-on-error", "open-logic-debug.tex"]