forked from kartoza/docker-mapproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (29 loc) · 857 Bytes
/
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
#--------- Generic stuff all our Dockerfiles should start with so we get caching ------------
FROM python:2.7
MAINTAINER Tim Sutton<[email protected]>
RUN apt-get -y update
#-------------Application Specific Stuff ----------------------------------------------------
RUN apt-get install -y \
python-imaging \
python-yaml \
libproj0 \
libgeos-dev \
python-lxml \
libgdal-dev \
build-essential \
python-dev \
libjpeg-dev \
zlib1g-dev \
libfreetype6-dev \
python-virtualenv
RUN pip install Shapely Pillow MapProxy uwsgi
EXPOSE 8080
ADD uwsgi.conf /uwsgi.conf
ADD start.sh /start.sh
RUN chmod 0755 /start.sh
#USER www-data
# Now launch mappproxy in the foreground
# The script will create a simple config in /mapproxy
# if one does not exist. Typically you should mount
# /mapproxy as a volume
CMD /start.sh