Use build args to reduce number of Dockerfiles

This commit is contained in:
Marcel Schwarz 2020-03-28 04:56:23 +01:00
parent b885be60ef
commit df4e3f1c78
10 changed files with 14 additions and 24 deletions

6
ctan/Dockerfile Normal file
View File

@ -0,0 +1,6 @@
ARG SOURCE=infraonly
FROM icaotix/latex:$SOURCE
ARG SCHEME=minimal
RUN tlmgr install scheme-${SCHEME}

View File

@ -1,3 +0,0 @@
FROM icaotix/latex:minimal
RUN tlmgr install scheme-basic

View File

@ -1,3 +0,0 @@
FROM icaotix/latex:small
RUN tlmgr install scheme-context

View File

@ -1,3 +0,0 @@
FROM icaotix/latex:tetex
RUN tlmgr install scheme-full

View File

@ -1,3 +0,0 @@
FROM icaotix/latex:context
RUN tlmgr install scheme-gust

View File

@ -1,3 +0,0 @@
FROM icaotix/latex:gust
RUN tlmgr install scheme-medium

View File

@ -1,3 +0,0 @@
FROM icaotix/latex:infraonly
RUN tlmgr install scheme-minimal

View File

@ -1,3 +0,0 @@
FROM icaotix/latex:basic
RUN tlmgr install scheme-small

View File

@ -1,3 +0,0 @@
FROM icaotix/latex:medium
RUN tlmgr install scheme-tetex

8
ctan/run.bat Normal file
View File

@ -0,0 +1,8 @@
docker build -t icaotix/latex:minimal --build-arg SOURCE=infraonly --build-arg SCHEME=minimal .
docker build -t icaotix/latex:basic --build-arg SOURCE=minimal --build-arg SCHEME=basic .
docker build -t icaotix/latex:small --build-arg SOURCE=basic --build-arg SCHEME=small .
docker build -t icaotix/latex:context --build-arg SOURCE=small --build-arg SCHEME=context .
docker build -t icaotix/latex:gust --build-arg SOURCE=context --build-arg SCHEME=gust .
docker build -t icaotix/latex:medium --build-arg SOURCE=gust --build-arg SCHEME=medium .
docker build -t icaotix/latex:tetex --build-arg SOURCE=medium --build-arg SCHEME=tetex .
docker build -t icaotix/latex:full --build-arg SOURCE=tetex --build-arg SCHEME=full .