Skip to content
Snippets Groups Projects
Commit 9a03e45f authored by Yannick Zwicker's avatar Yannick Zwicker
Browse files

optimize dockerfile

parent d7678beb
No related branches found
No related tags found
1 merge request!2Ost beamer dependensies
Pipeline #130934 failed with stage
in 9 minutes and 48 seconds
......@@ -6,9 +6,21 @@ ENV DEBIAN_FRONTEND noninteractive
# Install basics
RUN apt-get update -q \
&& apt-get install -qy build-essential wget libfontconfig1 locales \
&& apt-get install -qy --no-install-recommends \
build-essential \
wget \
libfontconfig1 \
locales \
rubber \
python3 \
python3-pip \
python3-pygments \
fonts-liberation \
&& rm -rf /var/lib/apt/lists/*
RUN pip3 install gummi
# Setting locales
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
locale-gen
......@@ -26,24 +38,18 @@ RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz; \
rm install-tl-unx.tar.gz
ENV PATH="/usr/local/texlive/2021/bin/x86_64-linux:${PATH}"
RUN tlmgr install latexmk
RUN tlmgr install scheme-full
RUN tlmgr install scheme-full
# Fix latexindent requirements
RUN cpan Unicode::GCString
RUN cpan App::cpanminus
RUN cpan YAML::Tiny
RUN perl -MCPAN -e 'install "File::HomeDir"'
RUN apt-get update -q \
&& apt-get install -y --no-install-recommends \
rubber python3 python3-pip python3-pygments fonts-liberation
RUN pip3 install gummi
RUN cpan Unicode::GCString; \
cpan App::cpanminus; \
cpan YAML::Tiny; \
perl -MCPAN -e 'install "File::HomeDir"'
ENV HOME /workspaces
WORKDIR /workspaces
RUN chown vscode:vscode /workspaces; \
chown -R vscode:vscode /usr/local/texlive/2021/tlpkg/
VOLUME ["/workspaces"]
USER vscode
\ No newline at end of file
USER vscode
......@@ -2,4 +2,4 @@
Container to be used as a base image for a devcontainer and in gitlab-ci.
> :warning: **texlive-full**: This container is over 7GB!
\ No newline at end of file
> :warning: **texlive-full**: This container is over 5GB!
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment