Skip to content

Commit

Permalink
feat: add docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
heycarl committed Apr 28, 2024
1 parent abae2d1 commit 1487f7e
Show file tree
Hide file tree
Showing 2 changed files with 117 additions and 0 deletions.
107 changes: 107 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
FROM frolvlad/alpine-glibc:alpine-3.8_glibc-2.28

# Config the automated install
COPY texlive.profile texlive.profile

# set up packages
## &&
# Remove unnecessary archieves
RUN apk add --no-cache wget perl xz

RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz && \
tar -xzf install-tl-unx.tar.gz && \
install-tl-20*/install-tl --profile=./texlive.profile

RUN apk --no-cache del xz

RUN rm install-tl-unx.tar.gz texlive.profile && \
rm -r install-tl-20*

# set up path
ENV PATH="/usr/local/texlive/bin/x86_64-linuxmusl:${PATH}"

# TeXLive update
## &&
# TeXLive deps
## &&
# TeXLive packages
## hyphen-* for english/russial lang word wraps support
## xstring for string switch-cases
## latexmk for fast build target
## xetex for xelatex compiler
## t2 for mathtext
## tools for indentfirst
## oberdiek for ifpdf
## bigfoot for perpage
## zapfding for pzdr
## koma-script for tocbasic
## pgf for tikz
## float for floating
## * for -//-
## &&
# Windows fonts
## &&
# Other tools
RUN tlmgr update --self

RUN apk add --no-cache fontconfig

RUN tlmgr install \
\
hyphen-english \
hyphen-russian \
\
latexmk \
xetex \
polyglossia \
t2 \
tools \
oberdiek \
bigfoot \
zapfding \
xstring \
datetime \
nomencl \
\
geometry \
setspace \
footmisc \
tocloft \
fancyhdr \
titlesec \
graphics \
graphics-cfg \
caption \
amsmath \
amscls \
enumitem \
makecell \
multirow \
was \
sistyle \
xcolor \
listings \
ulem \
hyperref \
latexconfig \
url \
natbib \
lastpage \
totcount \
pdfpages \
textcase \
fp \
extsizes \
fmtcount \
koma-script \
float \
pgf


RUN apk add --no-cache msttcorefonts-installer

RUN update-ms-fonts

RUN fc-cache -f

RUN apk add --no-cache make
10 changes: 10 additions & 0 deletions docker/texlive.profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
selected_scheme scheme-minimal
TEXDIR /usr/local/texlive
TEXMFCONFIG ~/.texlive/texmf-config
TEXMFHOME ~/texmf
TEXMFLOCAL /usr/local/texlive/texmf-local
TEXMFSYSCONFIG /usr/local/texlive/texmf-config
TEXMFSYSVAR /usr/local/texlive/texmf-var
TEXMFVAR ~/.texlive/texmf-var
option_doc 0
option_src 0

0 comments on commit 1487f7e

Please sign in to comment.