-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (23 loc) · 726 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (23 loc) · 726 Bytes
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
FROM ubuntu:22.04
MAINTAINER Chan Mo <chan.mo@outlook.com>
COPY sources.list /etc/apt/sources.list
WORKDIR /app
# Libreoffce
RUN apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:libreoffice/ppa && \
apt-get update && \
apt-get install -y --no-install-recommends libreoffice && \
apt-get remove -y --auto-remove software-properties-common && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Some additional MS fonts for better WMF conversion
COPY fonts/* /usr/share/fonts/
RUN fc-cache -f -v
COPY get-pip.py .
RUN python3 get-pip.py
RUN python3 -m pip install unoserver flask gunicorn
EXPOSE 5000
COPY app.py .
ADD start.sh /
CMD ["/start.sh"]