-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
24 lines (17 loc) · 938 Bytes
/
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
FROM ubuntu:22.04 as build
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update && apt-get install -y python3-pip wget libz-dev \
&& pip3 install -U mammoth==1.4.19 Sphinx==5.1.1 sphinx_rtd_theme==1.0.0 oletools==0.60.1 setuptools idna
RUN sed -i 's/options.get("ignore_empty_paragraphs", True)/options.get("ignore_empty_paragraphs", False)/g' /usr/local/lib/python3.10/dist-packages/mammoth/options.py
RUN wget https://github.com/jgm/pandoc/releases/download/2.19.2/pandoc-2.19.2-linux-amd64.tar.gz
RUN tar xzf pandoc-2.19.2-linux-amd64.tar.gz --strip-components 1 -C /usr/local/
FROM ubuntu:22.04
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update && apt-get install -y python3 make zip
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get install -y python3-distutils
COPY --from=build /usr/local /usr/local
COPY convert.sh /
VOLUME /u
WORKDIR /u
ENTRYPOINT ["/bin/bash", "/convert.sh"]