Skip to content

Instantly share code, notes, and snippets.

@Kombustor
Created January 9, 2020 17:53
Show Gist options
  • Save Kombustor/a8de25ccdd06fae17ea1f6a937fd4bed to your computer and use it in GitHub Desktop.
Save Kombustor/a8de25ccdd06fae17ea1f6a937fd4bed to your computer and use it in GitHub Desktop.
{
"name": "latex-env",
"extensions": [
"james-yu.latex-workshop"
],
"dockerFile": "Dockerfile",
"mounts": [
"source=${localEnv:HOME}${localEnv:USERPROFILE}/.gitconfig,target=~/.gitconfig,type=bind,consistency=cached"
]
}
FROM ubuntu:18.10
# non interactive frontend for locales
ENV DEBIAN_FRONTEND=noninteractive
# installing texlive and utils
RUN apt-get update && \
apt-get -y install --no-install-recommends pandoc texlive texlive-latex-extra texlive-generic-extra texlive-extra-utils texlive-fonts-extra texlive-bibtex-extra biber latexmk make git procps locales curl && \
rm -rf /var/lib/apt/lists/*
# generating locales
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=en_US.UTF-8
ENV LANGUAGE=en_US.UTF-8 LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
# installing cpanm & missing latexindent dependencies
RUN curl -L http://cpanmin.us | perl - --self-upgrade && \
cpanm Log::Dispatch::File YAML::Tiny File::HomeDir
{
"latex-workshop.latex.outDir": "./out",
"latex-workshop.synctex.afterBuild.enabled": true,
"latex-workshop.view.pdf.viewer": "tab",
"latex-workshop.synctex.afterBuild.enabled": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment