This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
58 lines (39 loc) · 1.58 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
FROM ubuntu:16.04
RUN apt-get update && apt-get install --no-install-recommends -y \
python3 \
libmapnik3.0 mapnik-utils\
python3-mapnik python3-pip \
wget curl unzip \
gdal-bin osm2pgsql \
postgresql-client
# Install fonts needed for rendering
RUN apt-get install -y fontconfig \
fonts-noto-cjk fonts-noto-hinted fonts-noto-unhinted ttf-unifont ttf-hanazono \
fonts-khmeros fonts-sil-padauk fonts-sipa-arundina
RUN wget https://noto-website.storage.googleapis.com/pkgs/NotoEmoji-unhinted.zip && \
unzip -o NotoEmoji-unhinted.zip && \
mv *ttf /usr/share/fonts/truetype/noto && \
rm NotoEmoji-unhinted.zip && \
fc-cache -f -v
#RUN wget https://noto-website-2.storage.googleapis.com/pkgs/NotoSansAdlamUnjoined-hinted.zip && \
# unzip -o NotoSansAdlamUnjoined-hinted.zip && \
# mv *ttf /usr/share/fonts/truetype/noto && \
# rm NotoSansAdlamUnjoined-hinted.zip && \
# fc-cache -f -v
#RUN wget https://noto-website-2.storage.googleapis.com/pkgs/NotoSansAdlam-hinted.zip && \
# unzip -o NotoSansAdlam-hinted.zip && \
# mv *ttf /usr/share/fonts/truetype/noto && \
# rm NotoSansAdlam-hinted.zip && \
# fc-cache -f -v
RUN pip3 install --upgrade pip setuptools
COPY requirements.txt /tmp/
RUN pip3 install -r /tmp/requirements.txt
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get install -y nodejs
RUN npm install -g carto cartocc
RUN mkdir -p /opt/app
WORKDIR /opt/app
COPY src /opt/app/
EXPOSE 8000
ENV PYTHONUNBUFFERED 1
CMD gunicorn -R -k gevent --log-config logging.conf --log-level DEBUG webapp:app -b :8000