mirror of
https://github.com/Briffou/texlive-docker
synced 2025-04-19 10:44:57 +00:00
add dockerfile for Tex Live
This commit is contained in:
commit
b068f257b2
26
Dockerfile
Normal file
26
Dockerfile
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# Docker for Tex Live
|
||||||
|
# current version : Tex Live 2017
|
||||||
|
FROM phusion/baseimage
|
||||||
|
|
||||||
|
LABEL version="2 july 2017"
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y ghostscript xz-utils wget bsdtar perl && \
|
||||||
|
apt-get clean
|
||||||
|
|
||||||
|
WORKDIR /home/install-tl-unx
|
||||||
|
|
||||||
|
ADD custom.profile .
|
||||||
|
|
||||||
|
RUN wget -nv -O install-tl-unx.tar.gz http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz && \
|
||||||
|
tar -xzf install-tl-unx.tar.gz --strip-components=1 && \
|
||||||
|
./install-tl --profile custom.profile && \
|
||||||
|
ln -s /usr/local/texlive/latest/bin/x86_64-linux /opt/texbin && \
|
||||||
|
rm -rf /usr/local/texlive/latest/texmf-dist/doc/ && \
|
||||||
|
rm -rf /home/install-tl-unx
|
||||||
|
|
||||||
|
WORKDIR /data
|
||||||
|
|
||||||
|
ENV PATH $PATH:/usr/local/texlive/latest/bin/x86_64-linux
|
||||||
|
|
||||||
|
CMD ["/bin/bash"]
|
||||||
|
|
36
README.md
Normal file
36
README.md
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# About
|
||||||
|
Docker for Tex Live (based on phusion/baseimage). Currently Tex Live 2017
|
||||||
|
This Dockerfile download and install the latest Tex Live archive available
|
||||||
|
|
||||||
|
# Warning
|
||||||
|
This is not a full texlive distribution. This is based on "scheme-medium" profile with the following collections added:
|
||||||
|
* collection-binextra
|
||||||
|
* collection-fontsextra
|
||||||
|
* collection-fontsrecommended
|
||||||
|
* collection-langfrench
|
||||||
|
* collection-langspanish
|
||||||
|
* collection-langgerman
|
||||||
|
* collection-latexextra
|
||||||
|
* collection-mathscience
|
||||||
|
* collection-plaingeneric
|
||||||
|
* collection-publishers
|
||||||
|
* collection-xetex
|
||||||
|
|
||||||
|
To get the docker : docker pull briffou/texlive
|
||||||
|
|
||||||
|
# Usage
|
||||||
|
## Outside the container
|
||||||
|
```
|
||||||
|
docker run --rm -it -v $(pwd):/data briffou/texlive pdflatex file.tex
|
||||||
|
docker run --rm -it -v $(pwd):/data briffou/texlive latexmk file.tex
|
||||||
|
```
|
||||||
|
|
||||||
|
## Inside
|
||||||
|
```
|
||||||
|
docker run --rm -it -v $(pwd):/data briffou/texlive
|
||||||
|
```
|
||||||
|
then
|
||||||
|
```
|
||||||
|
pdflatex file.tex
|
||||||
|
```
|
||||||
|
|
41
custom.profile
Normal file
41
custom.profile
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
# texlive.profile
|
||||||
|
selected_scheme scheme-medium
|
||||||
|
TEXDIR /usr/local/texlive/latest
|
||||||
|
TEXMFCONFIG ~/.texlive-latest/texmf-config
|
||||||
|
TEXMFHOME ~/texmf
|
||||||
|
TEXMFLOCAL /usr/local/texlive/texmf-local
|
||||||
|
TEXMFSYSCONFIG /usr/local/texlive/latest/texmf-config
|
||||||
|
TEXMFSYSVAR /usr/local/texlive/latest/texmf-var
|
||||||
|
TEXMFVAR ~/.texlive-latest/texmf-var
|
||||||
|
binary_x86_64-linux 1
|
||||||
|
instopt_adjustpath 0
|
||||||
|
instopt_adjustrepo 1
|
||||||
|
instopt_letter 0
|
||||||
|
instopt_portable 0
|
||||||
|
instopt_write18_restricted 1
|
||||||
|
tlpdbopt_autobackup 1
|
||||||
|
tlpdbopt_backupdir tlpkg/backups
|
||||||
|
tlpdbopt_create_formats 1
|
||||||
|
tlpdbopt_desktop_integration 1
|
||||||
|
tlpdbopt_file_assocs 1
|
||||||
|
tlpdbopt_generate_updmap 0
|
||||||
|
tlpdbopt_install_docfiles 1
|
||||||
|
tlpdbopt_install_srcfiles 1
|
||||||
|
tlpdbopt_post_code 1
|
||||||
|
tlpdbopt_sys_bin /usr/local/bin
|
||||||
|
tlpdbopt_sys_info /usr/local/share/info
|
||||||
|
tlpdbopt_sys_man /usr/local/share/man
|
||||||
|
tlpdbopt_w32_multi_user 1
|
||||||
|
|
||||||
|
# add some collections to "scheme-medium"
|
||||||
|
collection-binextra 1
|
||||||
|
collection-fontsextra 1
|
||||||
|
collection-fontsrecommended 1
|
||||||
|
collection-langfrench 1
|
||||||
|
collection-langspanish 1
|
||||||
|
collection-langgerman 1
|
||||||
|
collection-latexextra 1
|
||||||
|
collection-mathscience 1
|
||||||
|
collection-plaingeneric 1
|
||||||
|
collection-publishers 1
|
||||||
|
collection-xetex 1
|
Loading…
x
Reference in New Issue
Block a user