aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 9d51f4a0c2aadf10715f03a669045467ddfeb640 (plain)
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
FROM ubuntu:24.04

ENV PYTHONDONTWRITEBYTECODE=1 \
    PYTHONUNBUFFERED=1 \
    PIP_NO_CACHE_DIR=1 \
    PIP_DISABLE_PIP_VERSION_CHECK=1

# system deps + libreoffice fresh ppa
RUN apt-get update && \
    apt-get install -y --no-install-recommends \
        software-properties-common \
        ca-certificates && \
    add-apt-repository -y ppa:libreoffice/ppa && \
    apt-get update && \
    apt-get install -y --no-install-recommends \
        python3 \
        python3-pip \
        python3-venv \
        libreoffice \
        poppler-utils \
        # fonts-liberation2 \
        # fonts-dejavu \
        # fonts-dejavu-extra \
        # fonts-noto \
        # fonts-noto-color-emoji \
        # fonts-noto-core \
        # fonts-noto-extra \
        # fonts-noto-ui-core \
        # fonts-noto-ui-extra \
        # fonts-noto-cjk \
        # fonts-noto-cjk-extra \
        # fonts-noto-hinted \
        # fonts-noto-unhinted \
        # fonts-freefont-ttf \
        # fonts-urw-base35 \
        # fonts-font-awesome \
        # fonts-powerline \
        # ttf-mscorefonts-installer \
        # fonts-cascadia-code \
        # fonts-firacode \
        # fonts-roboto \
        # fonts-roboto-slab \
        # fonts-ubuntu \
        # fonts-hack \
        # fonts-lato \
        # fonts-open-sans \
        # fonts-inconsolata \
        # fonts-droid-fallback \
        # fonts-symbola \
        # fonts-ancient-scripts \
        # fonts-indic \
        # fonts-beng \
        # fonts-deva \
        # fonts-gargi \
        # fonts-gubbi \
        # fonts-gujr \
        # fonts-guru \
        # fonts-kalapi \
        # fonts-knda \
        # fonts-lohit-beng-assamese \
        # fonts-lohit-beng-bengali \
        # fonts-lohit-deva \
        # fonts-lohit-gujr \
        # fonts-lohit-guru \
        # fonts-lohit-knda \
        # fonts-lohit-mlym \
        # fonts-lohit-orya \
        # fonts-lohit-taml \
        # fonts-lohit-taml-classical \
        # fonts-lohit-telu \
        # fonts-mlym \
        # fonts-navilu \
        # fonts-orya \
        # fonts-pagul \
        # fonts-sahadeva \
        # fonts-samyak-deva \
        # fonts-samyak-gujr \
        # fonts-samyak-mlym \
        # fonts-samyak-taml \
        # fonts-sarai \
        # fonts-smc \
        # fonts-taml \
        # fonts-telu \
        # fonts-tlwg-garuda \
        # fonts-tlwg-kinnari \
        # fonts-tlwg-loma \
        # fonts-tlwg-mono \
        # fonts-tlwg-norasi \
        # fonts-tlwg-purisa \
        # fonts-tlwg-sawasdee \
        # fonts-tlwg-typewriter \
        # fonts-tlwg-typist \
        # fonts-tlwg-typo \
        # fonts-tlwg-umpush \
        # fonts-tlwg-waree \
        # fonts-arphic-ukai \
        # fonts-arphic-uming \
        # fonts-wqy-microhei \
        # fonts-wqy-zenhei \
        # fonts-ipafont \
        # fonts-ipafont-gothic \
        # fonts-ipafont-mincho \
        # fonts-ipaexfont \
        # fonts-ipaexfont-gothic \
        # fonts-ipaexfont-mincho \
        # fonts-takao \
        # fonts-takao-gothic \
        # fonts-takao-mincho \
        # fonts-vlgothic \
        # fonts-hanazono \
        # fonts-khmeros \
        # fonts-lao \
        # fonts-sil-abyssinica \
        # fonts-sil-ezra \
        # fonts-sil-padauk \
        # fonts-sil-scheherazade \
        # fonts-thai-tlwg \
        # fonts-lklug-sinhala \
        # fonts-kacst \
        # fonts-kacst-one \
        # fonts-farsiweb \
        # fonts-smc-anjalioldlipi \
        # fonts-smc-chilanka \
        # fonts-smc-dyuthi \
        # fonts-smc-karumbi \
        # fonts-smc-keraleeyam \
        # fonts-smc-manjari \
        # fonts-smc-meera \
        # fonts-smc-rachana \
        # fonts-smc-raghumalayalamsans \
        # fonts-smc-suruma \
        # fonts-smc-uroob \
        # fonts-yrsa-rasa \
        # fonts-cantarell \
        # fonts-comfortaa \
        # fonts-croscore \
        # fonts-ebgaramond \
        # fonts-fantasque-sans \
        # fonts-junicode \
        # fonts-lyx \
        # fonts-mathjax \
        # fonts-nanum \
        # fonts-nanum-coding \
        # fonts-nanum-extra \
        # fonts-opensymbol \
        # fonts-quicksand \
        # fonts-sil-gentium \
        # fonts-sil-gentiumplus \
        # fonts-stix \
        # fonts-texgyre \
        # fonts-terminus \
        # fonts-dejavu-mono \
        # fonts-linuxlibertine \
        # fonts-arkpandora \
        # fonts-beteckna \
        # fonts-gfs-artemisia \
        # fonts-gfs-complutum \
        # fonts-gfs-didot \
        # fonts-gfs-neohellenic \
        # fonts-gfs-olga \
        # fonts-gfs-solomos \
        # fonts-gfs-theokritos \
        fonts-liberation \
        fonts-dejavu-core && \
    apt-get clean && \
    rm -rf /var/lib/apt/lists/*

# python deps
COPY src/requirements.txt /tmp/requirements.txt
RUN pip3 install --no-cache-dir --no-compile --break-system-packages -r /tmp/requirements.txt

# kjandoc binary -> /usr/local/bin
COPY src/kjandoc /usr/local/bin/kjandoc
RUN chmod +x /usr/local/bin/kjandoc

# demoware
WORKDIR /app
COPY demoware/ /app/

# storage dirs
RUN mkdir -p /app/uploads /app/output

EXPOSE 8080

CMD ["python3", "server.py"]