-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
52 lines (43 loc) · 1.11 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
43
44
45
46
47
48
49
50
51
52
# build pandoc rpm with fpm
FROM ruby:alpine3.15 AS rpmbuild
ARG PANDOC_VERSION
# check if pandoc version is set
RUN test -n "$PANDOC_VERSION" || (echo "ERROR: PANDOC_VERSION not set" && exit 1) \
&& apk --no-cache add \
make=4.3-r0 \
gcc=10.3.1_git20211027-r0 \
libc-dev=0.7.2-r3 \
wget=1.21.2-r2 \
rpm=4.16.1.3-r1 \
&& gem install fpm:1.14.1
# make rpm
WORKDIR /tmp/rpmbuild
COPY Makefile /tmp/rpmbuild
RUN make rpm PKG_VERSION=$PANDOC_VERSION
# create pandoc container by installing pandoc rpm and texlive
FROM fedora:35
LABEL maintainer="jwhb <jwhy@jwhy.de>"
RUN dnf install -y \
make \
findutils \
texlive \
texlive-babel-german \
texlive-base \
texlive-blindtext \
texlive-german \
texlive-latex \
texlive-lipsum \
texlive-morefloats \
texlive-sectsty \
texlive-siunitx \
texlive-threeparttable \
texlive-tocloft \
texlive-truncate \
texlive-ulem \
texlive-wallpaper \
&& dnf clean all
# install pandoc from rpm
COPY --from=rpmbuild /tmp/rpmbuild/pandoc*.rpm /root/pandoc.rpm
RUN dnf localinstall -y /root/pandoc.rpm && dnf clean all
WORKDIR /source
ENTRYPOINT []