-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.in
79 lines (65 loc) · 1.78 KB
/
base.in
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
FROM continuumio/miniconda3:4.10.3
RUN conda install -c conda-forge cartopy
ENV TZ="Europe/Berlin"
ENV DEBIAN_FRONTEND="noninteractive"
ARG USER_ID
ARG GROUP_ID
RUN addgroup --gid $GROUP_ID www
RUN adduser \
--disabled-password \
--home /www \
--gecos '' \
--uid $USER_ID \
--gid $GROUP_ID www
RUN apt-get update && apt-get install -y apt-utils build-essential
# configure timezone
RUN ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime && \
apt-get install -y tzdata
# install xelatex stuff
RUN apt-get install -y \
texlive-base \
texlive-xetex \
texlive-lang-arabic \
fonts-freefont-ttf \
fonts-noto-core \
fontconfig \
zip
# configure latex
RUN echo 'main_memory = 9000000\nextra_mem_top = 6000000\nextra_mem_bot = 6000000\nhash_extra = 200000\npool_size = 3850000' >> /etc/texmf/web2c/texmf.cnf
# get and install Syriac font
WORKDIR /tmp
RUN wget http://bethmardutho.org/wp-content/uploads/2018/06/melthofonts-1.zip \
&& unzip melthofonts-1.zip \
&& cp melthofonts-1/melthofonts-1.21/SyrCOMTalada.otf /usr/share/fonts/ \
&& fc-cache -f -v \
&& rm -rf melthofonts-1.zip melthofonts-1
# install en_US locale
RUN apt-get install -y locales \
&& echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \
&& locale-gen
# install pg_dump
RUN apt-get update && apt-get install -y postgresql-client
# install Python dependencies
USER www
RUN pip install --no-warn-script-location \
'flask==2.3.2' \
'gunicorn[gevent]' \
'requests' \
'Flask-HTTPAuth' \
'passlib[bcrypt]' \
'pyjwt>=2' \
'pyyaml' \
'postgres' \
'password-strength' \
'brotli' \
'apscheduler' \
'html5lib' \
'jsonschema==3.2.0' \
'python-dateutil' \
'beautifulsoup4' \
'Shapely==1.8a3' \
'geopandas' \
'geoplot' \
'pygeos' \
'python-Levenshtein'
WORKDIR /