-
Notifications
You must be signed in to change notification settings - Fork 18
/
Dockerfile
39 lines (35 loc) · 938 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
36
37
38
39
FROM python:3.5
MAINTAINER Arne Schubert<atd.schubert@gmail.com>
ENV MAPPROXY_VERSION 1.11.0
ENV MAPPROXY_PROCESSES 4
ENV MAPPROXY_THREADS 2
RUN set -x \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
python-imaging \
python-yaml \
libproj12 \
libgeos-dev \
python-lxml \
libgdal-dev \
build-essential \
python-dev \
libjpeg-dev \
zlib1g-dev \
libfreetype6-dev \
python-virtualenv \
&& rm -rf /var/lib/apt/lists/* \
&& useradd -ms /bin/bash mapproxy \
&& mkdir -p /mapproxy \
&& chown mapproxy /mapproxy \
&& pip install --upgrade pip \
&& pip install Shapely Pillow requests geojson uwsgi MapProxy==$MAPPROXY_VERSION \
&& mkdir -p /docker-entrypoint-initmapproxy.d
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["mapproxy"]
USER mapproxy
VOLUME ["/mapproxy"]
EXPOSE 8080
# Stats
EXPOSE 9191