|
| 1 | +#------------------------------------------------------------------------------------------------------------- |
| 2 | +# Copyright (c) Microsoft Corporation. All rights reserved. |
| 3 | +# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. |
| 4 | +#------------------------------------------------------------------------------------------------------------- |
| 5 | + |
| 6 | +FROM ubuntu:24.04 |
| 7 | + |
| 8 | +SHELL ["/bin/bash", "-o", "pipefail", "-c"] |
| 9 | +ENV DEBIAN_FRONTEND=noninteractive |
| 10 | + |
| 11 | +RUN apt-get update \ |
| 12 | + && apt-get -y install --no-install-recommends \ |
| 13 | + apt-utils=2.8.3* \ |
| 14 | + # Verify git and needed tools are installed |
| 15 | + git=1:2.43.0* \ |
| 16 | + procps=2:4.0.4* \ |
| 17 | + # Install Tex Live |
| 18 | + && apt-get -y upgrade \ |
| 19 | + && apt-get -y install --no-install-recommends \ |
| 20 | + texlive-latex-base=2023.20240207* \ |
| 21 | + texlive-extra-utils=2023.20240207* \ |
| 22 | + texlive-latex-extra=2023.20240207* \ |
| 23 | + texlive-bibtex-extra=2023.20240207* \ |
| 24 | + texlive-lang-all=2023.20240207* \ |
| 25 | + biber=2.19* \ |
| 26 | + chktex=1.7.8* \ |
| 27 | + latexmk=1:4.83* \ |
| 28 | + make=4.3* \ |
| 29 | + python3-pygments=2.17.2* \ |
| 30 | + python3-pkg-resources=68.1.2* \ |
| 31 | + curl=8.5.0* \ |
| 32 | + # Clean up |
| 33 | + && apt-get autoremove -y \ |
| 34 | + && apt-get clean -y \ |
| 35 | + && rm -rf /var/lib/apt/lists/* |
| 36 | + |
| 37 | +# latexindent modules |
| 38 | +RUN curl -L http://cpanmin.us | perl - App::cpanminus \ |
| 39 | + && cpanm Log::Dispatch::File \ |
| 40 | + && cpanm YAML::Tiny \ |
| 41 | + && cpanm File::HomeDir \ |
| 42 | + && cpanm Unicode::GCString |
| 43 | + |
| 44 | +# Dockerfile linter |
| 45 | +COPY --from=hadolint/hadolint:v2.14.0-debian /bin/hadolint /bin/hadolint |
| 46 | + |
| 47 | +ENV DEBIAN_FRONTEND=dialog \ |
| 48 | + LANG=C.UTF-8 \ |
| 49 | + LC_ALL=C.UTF-8 |
0 commit comments