commit b068f257b280829679fe7e4e96f9a13d8587a6f9
Author: Thomas <thomas.briffard@gmail.com>
Date:   Sun Jul 2 12:42:56 2017 -0400

    add dockerfile for Tex Live

diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..97a33ac
--- /dev/null
+++ b/Dockerfile
@@ -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"]    
+    
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..33b81c3
--- /dev/null
+++ b/README.md
@@ -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
+```
+
diff --git a/custom.profile b/custom.profile
new file mode 100644
index 0000000..7218629
--- /dev/null
+++ b/custom.profile
@@ -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