Commit d69dab0c authored by Lukas Nagel's avatar Lukas Nagel
Browse files

simplify container

parent f11926c0
......@@ -6,4 +6,5 @@
......@@ -106,10 +106,13 @@ polish:
# Docker
docker: .docker
.docker: $(shell find docker/)
make -C docker
touch .docker
with-docker: | docker
docker run -v ${PWD}:/build:rw -it $${DOCKER_TAG:-itt:latest} "make -C /build $(RULE)"
.PHONY: presentation mindmap clean docker polish
......@@ -2,28 +2,32 @@
FROM pandoc/alpine-latex
ENTRYPOINT ["/bin/sh", "-c"]
# install make
RUN apk add --no-cache make
# install basics
RUN apk add --no-cache make curl perl python3
# install imagemagick for image conversion
RUN apk add --no-cache imagemagick
# install tlmgr
COPY /tmp/
RUN chmod +x /tmp/ && /tmp/
# install standalone document class
RUN tlmgr install standalone
# install latexrun, which needs python3
RUN apk add --no-cache python3
RUN wget -q -O /bin/latexrun
RUN chmod +x /bin/latexrun
# install fira fonts for a modernish look
COPY /tmp/
RUN chmod +x /tmp/ && /tmp/
RUN tlmgr install collection-fontsrecommended fontawesome stmaryrd
RUN tlmgr install needspace zref mdframed
RUN tlmgr install luatex85 luacode
# install latexrun
RUN curl -sLo /bin/latexrun && chmod +x /bin/latexrun
# install additional latex packages
ENV PATH "/opt/texlive/texdir/bin/x86_64-linuxmusl/tlmgr:${PATH}"
RUN tlmgr update --self && tlmgr install \
fontawesome \
luacode \
luatex85 \
mdframed \
needspace \
selnolig \
standalone \
zref \
&& rm -rf \
/opt/texlive/texdir/texmf-dist/doc \
/opt/texlive/texdir/readme-html.dir \
/opt/texlive/texdir/readme-txt.dir \
all: Dockerfile
all: Dockerfile
docker build -t $${DOCKER_TAG:-itt:latest} .
# Create tmpdir
DIR=$(mktemp -d) ||
(echo "Error while creating temporary directory" 1>&2 && exit -1)
cd $DIR
# Download & unpack installer
wget --quiet ||
(echo "Error while downloading archive" 1>&2 && exit -1)
tar -xzf install-tl-unx.tar.gz -C $DIR --strip-components=1 ||
(echo "Error while unpacking archive" 1>&2 && exit -1)
# install tl
echo 'selected_scheme collection-basic' > /tmp/texlive-profile.txt
$DIR/install-tl --profile=/tmp/texlive-profile.txt ||
(echo "Error while installing tlmngr" 1>&2 && exit -1)
wget --quiet
chmod +x && ./
# cleanup
rm -rf $DIR
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment