Use build args to reduce number of Dockerfiles
This commit is contained in:
parent
b885be60ef
commit
df4e3f1c78
6
ctan/Dockerfile
Normal file
6
ctan/Dockerfile
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
ARG SOURCE=infraonly
|
||||||
|
|
||||||
|
FROM icaotix/latex:$SOURCE
|
||||||
|
ARG SCHEME=minimal
|
||||||
|
|
||||||
|
RUN tlmgr install scheme-${SCHEME}
|
@ -1,3 +0,0 @@
|
|||||||
FROM icaotix/latex:minimal
|
|
||||||
|
|
||||||
RUN tlmgr install scheme-basic
|
|
@ -1,3 +0,0 @@
|
|||||||
FROM icaotix/latex:small
|
|
||||||
|
|
||||||
RUN tlmgr install scheme-context
|
|
@ -1,3 +0,0 @@
|
|||||||
FROM icaotix/latex:tetex
|
|
||||||
|
|
||||||
RUN tlmgr install scheme-full
|
|
@ -1,3 +0,0 @@
|
|||||||
FROM icaotix/latex:context
|
|
||||||
|
|
||||||
RUN tlmgr install scheme-gust
|
|
@ -1,3 +0,0 @@
|
|||||||
FROM icaotix/latex:gust
|
|
||||||
|
|
||||||
RUN tlmgr install scheme-medium
|
|
@ -1,3 +0,0 @@
|
|||||||
FROM icaotix/latex:infraonly
|
|
||||||
|
|
||||||
RUN tlmgr install scheme-minimal
|
|
@ -1,3 +0,0 @@
|
|||||||
FROM icaotix/latex:basic
|
|
||||||
|
|
||||||
RUN tlmgr install scheme-small
|
|
@ -1,3 +0,0 @@
|
|||||||
FROM icaotix/latex:medium
|
|
||||||
|
|
||||||
RUN tlmgr install scheme-tetex
|
|
8
ctan/run.bat
Normal file
8
ctan/run.bat
Normal 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 .
|
Loading…
Reference in New Issue
Block a user