-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
71 lines (59 loc) · 1.59 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
61
62
63
64
65
66
67
68
69
70
71
FROM postgis/postgis:15-3.5 AS development_build
RUN apt-get update --quiet \
&& apt-get install --quiet -y --no-install-recommends \
ca-certificates gnupg lsb-release locales \
wget curl \
git-core unzip \
netcat \
&& locale-gen $LANG && update-locale LANG=$LANG
# Get packages
RUN apt-get update --quiet \
&& apt-get install --quiet -y --no-install-recommends \
make \
fonts-hanazono \
fonts-noto-cjk \
fonts-noto-hinted \
fonts-noto-unhinted \
fonts-unifont \
gdal-bin \
graphicsmagick \
liblua5.3-dev \
libosmium2-dev \
libprotozero-dev \
lua5.3 \
mapnik-utils \
npm \
osm2pgsql \
osmium-tool \
osmosis \
python-is-python3 \
python3-mapnik \
python3-lxml \
python3-psycopg2 \
python3-shapely \
python3-pip \
sudo \
vim \
&& apt-get clean autoclean \
&& apt-get autoremove --yes \
&& rm -rf /var/lib/{apt,dpkg,cache,log}/
RUN wget --quiet https://downloads.sourceforge.net/gs-fonts/ghostscript-fonts-std-8.11.tar.gz \
&& tar xf ghostscript-fonts-std-8.11.tar.gz \
&& mkdir -p /usr/share/fonts/type1/ \
&& mv fonts/ /usr/share/fonts/type1/gsfonts
# Install python libraries
RUN pip install pyyaml nik4 requests notebook jupyterlab ipywidgets
# Install carto for stylesheet
RUN npm install -g [email protected]
ENV HOME=/home/postgres
# Make sure the contents of our repo are in ${HOME}
COPY . ${HOME}
RUN usermod -u 1000 postgres
RUN chown -R 1000 ${HOME}
USER postgres
RUN mkdir -p ${HOME}/openstreetmap-carto/data
RUN mkdir -p ${HOME}/output
RUN mkdir -p ${HOME}/pgdata
WORKDIR ${HOME}
RUN git clone https://github.com/geofabrik/sendfile_osm_oauth_protector
ENTRYPOINT ["./entrypoint-new.sh"]