Skip to content

Instantly share code, notes, and snippets.

@rwoeber
Last active October 12, 2022 07:03
Show Gist options
  • Save rwoeber/7921c4d09a7eafce043626e6c743e004 to your computer and use it in GitHub Desktop.
Save rwoeber/7921c4d09a7eafce043626e6c743e004 to your computer and use it in GitHub Desktop.
Alpine-Dockerfile with LaTex installed
FROM alpine:3.15.0
RUN apk update
RUN apk upgrade
RUN apk add --no-cache perl wget fontconfig freetype
# run install-tl to generate a profile
COPY texlive.profile /tmp
RUN wget \
--continue \
--directory-prefix /tmp \
${CTAN_MIRROR_URL:-'http://mirror.ctan.org'}/systems/texlive/tlnet/install-tl-unx.tar.gz
RUN cd /tmp && tar xzf /tmp/install-tl-unx.tar.gz
RUN /tmp/install-tl-*/install-tl \
-repository ${CTAN_MIRROR_URL:-'http://mirror.ctan.org'}/systems/texlive/tlnet \
-no-gui \
-profile /tmp/texlive.profile
RUN rm -rf /tmp/install-tl-* /tmp/texlive.profile
# add additional LaTex Packages
#RUN tlmgr install xstring marvosym
RUN mkdir -p /usr/share/fonts /root/.fonts
# texlive.profile written on Fri Dec 3 21:38:51 2021 UTC
# It will NOT be updated and reflects only the
# installation profile at installation time.
selected_scheme scheme-small
TEXDIR /usr/local/texlive
TEXMFLOCAL /usr/local/texlive/texmf-local
TEXMFSYSCONFIG /usr/local/texlive/texmf-config
TEXMFSYSVAR /usr/local/texlive/texmf-var
TEXMFCONFIG ~/texlive/texmf-config
TEXMFVAR ~/texlive/texmf-var
TEXMFHOME ~/texmf
binary_x86_64-linuxmusl 1
instopt_adjustpath 1
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 0
tlpdbopt_install_srcfiles 0
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment