Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
latex-in-docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
philingood
latex-in-docker
Commits
60be6cd5
Commit
60be6cd5
authored
6 months ago
by
philingood
Browse files
Options
Downloads
Patches
Plain Diff
Update Dockerfile
parent
24cc54e2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+38
-6
38 additions, 6 deletions
Dockerfile
with
38 additions
and
6 deletions
Dockerfile
+
38
−
6
View file @
60be6cd5
FROM
ubuntu:22.04
RUN
echo
"ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true"
| debconf-set-selections
ENV
DEBIAN_FRONTEND=noninteractive
ENV
DEBCONF_NONINTERACTIVE_SEEN=true
RUN
apt update
&&
\
RUN
echo
"ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true"
| debconf-set-selections
&&
\
apt update
&&
\
apt
install
--no-install-recommends
-y
\
wget
\
git
\
...
...
@@ -17,10 +19,40 @@ RUN apt update && \
texlive-fonts-extra
\
texlive-science
\
texlive-latex-recommended
\
latexmk
RUN
apt
install
--no-install-recommends
--reinstall
-y
\
latexmk
&&
\
apt
install
--no-install-recommends
--reinstall
-y
\
ttf-mscorefonts-installer
\
fonts-freefont-ttf
\
fontconfig
&&
\
wget
-O
/usr/share/fonts/xits-math.otf https://github.com/khaledhosny/xits-math/raw/master/XITSMath-Regular.otf
\ No newline at end of file
wget
-O
/usr/share/fonts/xits-math.otf https://github.com/khaledhosny/xits-math/raw/master/XITSMath-Regular.otf
echo "Update font cache." && \
fc-cache -fv && \
echo "Delete TeX Live sources and other useless stuff." && \
(rm -rf /usr/share/texmf/source || true) && \
(rm -rf /usr/share/texlive/texmf-dist/source || true) && \
find /usr/share/texlive -type f -name "readme*.*" -delete && \
find /usr/share/texlive -type f -name "README*.*" -delete && \
(rm -rf /usr/share/texlive/release-texlive.txt || true) && \
(rm -rf /usr/share/texlive/doc.html || true) && \
(rm -rf /usr/share/texlive/index.html || true) && \
echo "Clean up all temporary files." && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/* && \
rm -f /etc/ssh/ssh_host_* && \
echo "Delete man pages and documentation." && \
rm -rf /usr/share/man && \
mkdir -p /usr/share/man && \
find /usr/share/doc -depth -type f ! -name copyright -delete && \
find /usr/share/doc -type f -name "*.pdf" -delete && \
find /usr/share/doc -type f -name "*.gz" -delete && \
find /usr/share/doc -type f -name "*.tex" -delete && \
(find /usr/share/doc -type d -empty -delete || true) && \
mkdir -p /usr/share/doc && \
rm -rf /var/cache/apt/archives && \
mkdir -p /var/cache/apt/archives && \
rm -rf /tmp/* /var/tmp/* && \
(find /usr/share/ -type f -empty -delete || true) && \
(find /usr/share/ -type d -empty -delete || true) && \
mkdir -p /usr/share/texmf/source && \
mkdir -p /usr/share/texlive/texmf-dist/source && \
echo "All done."
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment