Added dockerfile and Makefile for small CTAN config

This commit is contained in:
Claudio Maggioni 2018-05-11 22:46:33 +02:00
parent e44e54ad78
commit 180c07457c
2 changed files with 38 additions and 0 deletions

25
Dockerfile.small Normal file
View file

@ -0,0 +1,25 @@
FROM ubuntu:xenial
MAINTAINER Claudio Maggioni <maggioniclaudio1999@gmail.com>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -q \
&& apt-get install -qy build-essential wget libfontconfig1 \
&& rm -rf /var/lib/apt/lists/*
RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz; \
mkdir /install-tl-unx; \
tar -xvf install-tl-unx.tar.gz -C /install-tl-unx --strip-components=1; \
echo "selected_scheme scheme-small" >> /install-tl-unx/texlive.profile; \
/install-tl-unx/install-tl -profile /install-tl-unx/texlive.profile; \
rm -r /install-tl-unx; \
rm install-tl-unx.tar.gz
ENV PATH="/usr/local/texlive/2018/bin/x86_64-linux:${PATH}"
ENV HOME /data
WORKDIR /data
# Install latex packages
RUN tlmgr install latexmk
VOLUME ["/data"]

13
Makefile Normal file
View file

@ -0,0 +1,13 @@
NS = praticamentetilde
REPO = latex
IMAGE = $(NS)/$(REPO)
.PHONY: build build_small
build: build_small
build_small: Dockerfile.small
@docker build -f Dockerfile.small -t $(IMAGE)\:2018-small .
default: build