-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
171 lines (129 loc) · 6.08 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
## Pandoc 2.14 pandoc-crossref 0.3.11.0
## build pandoc-crossref
FROM --platform=linux/arm64 munepi/tllangjapanese-base AS arm64-pandoc-2.14-build
ENV ARCH arm64
ENV PANDOC_VERSION 2.14
ENV PANDOCXREF_VERSION 0.3.11.0
RUN wget "https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-1-${ARCH}.deb" && \
dpkg -i *.deb
## pandoc-crossref filter: Building from repo with stack
RUN apt-get update && \
apt-get install -y --no-install-recommends \
haskell-stack llvm-9 zlib1g-dev libnuma-dev libtinfo5 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/lierdakil/pandoc-crossref.git && \
cd pandoc-crossref && \
git checkout v${PANDOCXREF_VERSION} && \
stack install && \
mv -v ${HOME}/.local/bin/* /usr/local/bin/ && \
cd ../ && rm -rf pandoc-crossref
FROM --platform=linux/amd64 munepi/tllangjapanese-base AS amd64-pandoc-2.14-build
ENV ARCH amd64
ENV PANDOC_VERSION 2.14
ENV PANDOCXREF_VERSION 0.3.11.0
RUN wget "https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-1-${ARCH}.deb" && \
dpkg -i *.deb
RUN wget "https://github.com/lierdakil/pandoc-crossref/releases/download/v${PANDOCXREF_VERSION}/pandoc-crossref-Linux.tar.xz" && \
tar xf pandoc-crossref-Linux.tar.xz -C /usr/local/bin
## use prebuild image
FROM --platform=linux/arm64 munepi/pandoc:2.14.20230607 AS arm64-pandoc-2.14-prebuild
FROM --platform=linux/amd64 munepi/pandoc:2.14.20230607 AS amd64-pandoc-2.14-prebuild
## build main image
FROM --platform=linux/arm64 munepi/tllangjapanese:2022 AS arm64-pandoc-2.14-tl22
## pandoc: install shared libraries
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libnuma1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# COPY --from=arm64-pandoc-2.14-build /usr/bin/pandoc /usr/local/bin/pandoc
# COPY --from=arm64-pandoc-2.14-build /usr/local/bin/pandoc-crossref /usr/local/bin/pandoc-crossref
COPY --from=arm64-pandoc-2.14-prebuild /usr/local/bin/pandoc /usr/local/bin/pandoc
COPY --from=arm64-pandoc-2.14-prebuild /usr/local/bin/pandoc-crossref /usr/local/bin/pandoc-crossref
WORKDIR /data
# ENTRYPOINT ["/bin/bash", "-c"]
# CMD ["pandoc", "--help"]
ENTRYPOINT [ "" ]
CMD [ "/bin/bash" ]
FROM --platform=linux/amd64 munepi/tllangjapanese:2022 AS amd64-pandoc-2.14-tl22
## pandoc: install shared libraries
RUN apt-get update && \
apt-get install -y --no-install-recommends \
liblua5.3-0 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# COPY --from=amd64-pandoc-2.14-build /usr/bin/pandoc /usr/local/bin/pandoc
# COPY --from=amd64-pandoc-2.14-build /usr/local/bin/pandoc-crossref /usr/local/bin/pandoc-crossref
COPY --from=amd64-pandoc-2.14-prebuild /usr/local/bin/pandoc /usr/local/bin/pandoc
COPY --from=amd64-pandoc-2.14-prebuild /usr/local/bin/pandoc-crossref /usr/local/bin/pandoc-crossref
WORKDIR /data
# ENTRYPOINT ["/bin/bash", "-c"]
# CMD ["pandoc", "--help"]
ENTRYPOINT [ "" ]
CMD [ "/bin/bash" ]
FROM --platform=linux/arm64 munepi/tllangjapanese:2021 AS arm64-pandoc-2.14-tl21
## pandoc: install shared libraries
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libnuma1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# COPY --from=arm64-pandoc-2.14-build /usr/bin/pandoc /usr/local/bin/pandoc
# COPY --from=arm64-pandoc-2.14-build /usr/local/bin/pandoc-crossref /usr/local/bin/pandoc-crossref
COPY --from=arm64-pandoc-2.14-prebuild /usr/local/bin/pandoc /usr/local/bin/pandoc
COPY --from=arm64-pandoc-2.14-prebuild /usr/local/bin/pandoc-crossref /usr/local/bin/pandoc-crossref
WORKDIR /data
# ENTRYPOINT ["/bin/bash", "-c"]
# CMD ["pandoc", "--help"]
ENTRYPOINT [ "" ]
CMD [ "/bin/bash" ]
FROM --platform=linux/amd64 munepi/tllangjapanese:2021 AS amd64-pandoc-2.14-tl21
## pandoc: install shared libraries
RUN apt-get update && \
apt-get install -y --no-install-recommends \
liblua5.3-0 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# COPY --from=amd64-pandoc-2.14-build /usr/bin/pandoc /usr/local/bin/pandoc
# COPY --from=amd64-pandoc-2.14-build /usr/local/bin/pandoc-crossref /usr/local/bin/pandoc-crossref
COPY --from=amd64-pandoc-2.14-prebuild /usr/local/bin/pandoc /usr/local/bin/pandoc
COPY --from=amd64-pandoc-2.14-prebuild /usr/local/bin/pandoc-crossref /usr/local/bin/pandoc-crossref
WORKDIR /data
# ENTRYPOINT ["/bin/bash", "-c"]
# CMD ["pandoc", "--help"]
ENTRYPOINT [ "" ]
CMD [ "/bin/bash" ]
FROM --platform=linux/arm64 munepi/tllangjapanese:2019 AS arm64-pandoc-2.14-tl19
## pandoc: install shared libraries
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libnuma1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# COPY --from=arm64-pandoc-2.14-build /usr/bin/pandoc /usr/local/bin/pandoc
# COPY --from=arm64-pandoc-2.14-build /usr/local/bin/pandoc-crossref /usr/local/bin/pandoc-crossref
COPY --from=arm64-pandoc-2.14-prebuild /usr/local/bin/pandoc /usr/local/bin/pandoc
COPY --from=arm64-pandoc-2.14-prebuild /usr/local/bin/pandoc-crossref /usr/local/bin/pandoc-crossref
WORKDIR /data
# ENTRYPOINT ["/bin/bash", "-c"]
# CMD ["pandoc", "--help"]
ENTRYPOINT [ "" ]
CMD [ "/bin/bash" ]
FROM --platform=linux/amd64 munepi/tllangjapanese:2019 AS amd64-pandoc-2.14-tl19
## pandoc: install shared libraries
RUN apt-get update && \
apt-get install -y --no-install-recommends \
liblua5.3-0 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# COPY --from=amd64-pandoc-2.14-build /usr/bin/pandoc /usr/local/bin/pandoc
# COPY --from=amd64-pandoc-2.14-build /usr/local/bin/pandoc-crossref /usr/local/bin/pandoc-crossref
COPY --from=amd64-pandoc-2.14-prebuild /usr/local/bin/pandoc /usr/local/bin/pandoc
COPY --from=amd64-pandoc-2.14-prebuild /usr/local/bin/pandoc-crossref /usr/local/bin/pandoc-crossref
WORKDIR /data
# ENTRYPOINT ["/bin/bash", "-c"]
# CMD ["pandoc", "--help"]
ENTRYPOINT [ "" ]
CMD [ "/bin/bash" ]
# end of file