-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (28 loc) · 1.27 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
32
33
34
35
36
37
38
39
40
41
42
FROM debian:buster-20210511 AS base
ARG dblatex_version=0.3.10-2
ARG inkscape_version=0.92.4-3
ARG texlive_lang_french_version=2018.20190227-2
ENV DBLATEX_VERSION=${dblatex_version} \
INKSCAPE_VERSION=${inkscape_version} \
TEXLIVE_LANG_FRENCH_VERSION=${texlive_lang_french_version}
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Minimal image with dblatex
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
FROM base AS main-minimal
RUN echo "assemble minimal main image" # keep here to help --cache-from along
LABEL MAINTAINER="Elias Leinenweber <[email protected]>"
RUN apt-get update && apt-get install -y --no-install-recommends \
"dblatex=${DBLATEX_VERSION}"
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Final image
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
FROM main-minimal AS main
RUN echo "assemble comprehensive main image" # keep here to help --cache-from along
LABEL MAINTAINER="Elias Leinenweber <[email protected]>"
# Installing packages for additional functionality
RUN apt-get update && apt-get install -y --no-install-recommends \
"inkscape=${INKSCAPE_VERSION}" \
"texlive-lang-french=${TEXLIVE_LANG_FRENCH_VERSION}"
WORKDIR /documents
VOLUME /documents
CMD [ "/bin/bash" ]