This repository was archived by the owner on May 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
65 lines (51 loc) · 1.33 KB
/
Dockerfile
File metadata and controls
65 lines (51 loc) · 1.33 KB
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
FROM ubuntu:16.04 as build
RUN apt-get -y update
RUN apt-get install -y software-properties-common
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt-get -y update --fix-missing
RUN apt-get -y install \
#Python installs:
build-essential \
python3.6 \
python3.6-dev \
python3-pip \
python3.6-venv \
#Libraries:
libxml2-dev \
libxslt1-dev \
zlib1g-dev \
#For tests:
sqlite3 \
libsqlite3-dev \
#PostgreSQL:
postgresql-client \
postgis \
libpq-dev \
#GEOS:
binutils \
libproj-dev \
gdal-bin \
libgeos-dev \
#Spatialite:
libsqlite3-mod-spatialite \
vim \
git
RUN python3.6 -m pip install pip --upgrade
ENV PYTHONPATH="$PYTHONPATH:/usr/local/lib/python3.6/dist-packages"
# Create a directory and copy in all files
RUN mkdir -p /tmp/tippecanoe-src
RUN git clone https://github.com/mapbox/tippecanoe.git /tmp/tippecanoe-src
WORKDIR /tmp/tippecanoe-src
ADD . /src/
RUN ["chmod", "+x", "/src/docker-entrypoint.sh"]
RUN pip install -r /src/ZOOM/requirements.txt
# Build tippecanoe
RUN make \
&& make install
# Remove the temp directory and unneeded packages
WORKDIR /
RUN rm -rf /tmp/tippecanoe-src \
&& apt-get -y remove --purge build-essential && apt-get -y autoremove
RUN chmod -R 777 /src/ZOOM/logs
# run
CMD ["sh","-c","nginx -g 'daemon off;'"]