-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (27 loc) · 1.02 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#
# dzhw/report-task
#
# This is an image with a basic TeX Live installation and
# additional resources for FDZ-DZHW reports.
#
# Source: https://github.com/dzhw/report-task
#
FROM adoptopenjdk:15.0.2_7-jre-hotspot-focal
MAINTAINER René Reitmann <[email protected]>
ARG JAR_FILE
# install all available package updates
RUN apt-get update && apt-get upgrade -y -q && apt-get dist-upgrade -y -q
# install texlive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
texlive-latex-base texlive-lang-german texlive-lang-english texlive-science texlive-latex-extra fontconfig make\
&& rm -rf /var/lib/apt/lists/*
# install calibri package
RUN mkdir /usr/share/texlive/texmf-dist/tex/latex/calibri
COPY latex-packages/fonts/Calibri /usr/share/texlive/texmf-dist/
RUN echo "Map Calibri.map" >> /usr/share/texlive/texmf-dist/web2c/updmap.cfg
RUN fc-cache && texhash && mktexlsr && updmap-sys
# copy other document assets
COPY latex-packages/doc /app/doc
# COPY the spring boot task jar
COPY ${JAR_FILE} /app/report-task.jar