Skip to content

Instantly share code, notes, and snippets.

@arshad115
Forked from Kombustor/.devcontainer\Dockerfile
Created December 6, 2024 08:47
Show Gist options
  • Save arshad115/6c4832f4f10f2a485425c3441490bd74 to your computer and use it in GitHub Desktop.
Save arshad115/6c4832f4f10f2a485425c3441490bd74 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