-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
60 lines (49 loc) · 1.23 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
FROM ubuntu:18.04
# Ubuntu libreoffice stuff is copied from https://github.com/ipunkt/docker-libreoffice-headless/blob/master/Dockerfile
RUN apt-get update && \
apt-get -y -q install \
vim \
libxml2-dev libxslt-dev python-dev libjpeg-dev \
python3 \
python3-pip \
openjdk-11-jre \
imagemagick \
libreoffice \
libreoffice-writer \
ure \
libreoffice-java-common \
libreoffice-core \
libreoffice-common \
#openjdk-8-jre \
fonts-opensymbol \
hyphen-fr \
hyphen-de \
hyphen-en-us \
hyphen-it \
hyphen-ru \
fonts-dejavu \
fonts-dejavu-core \
fonts-dejavu-extra \
fonts-droid-fallback \
fonts-dustin \
fonts-f500 \
fonts-fanwood \
fonts-freefont-ttf \
fonts-liberation \
fonts-lmodern \
fonts-lyx \
fonts-sil-gentium \
fonts-texgyre \
fonts-tlwg-purisa && \
apt-get -y -q remove libreoffice-gnome && \
apt -y autoremove && \
rm -rf /var/lib/apt/lists/* \
rm /etc/ImageMagick-6/policy.xml
RUN adduser --home=/opt/libreoffice --disabled-password --gecos "" --shell=/bin/bash libreoffice
WORKDIR /app
COPY pptx2md.py /app
COPY requirements.txt /app
RUN pip3 install -r requirements.txt
VOLUME /data
WORKDIR /data
ENTRYPOINT ["python3", "/app/pptx2md.py"]