forked from yagajs/docker-mapproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (34 loc) · 1002 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
FROM python:3.7.4-buster
LABEL maintainer="Arne Schubert<atd.schubert@gmail.com>"
LABEL maintainer="Juan Méndez<juan@gkudos.com>"
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-yaml \
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 git+https://github.com/mapproxy/mapproxy.git@1.12.0 \
&& mkdir -p /docker-entrypoint-initmapproxy.d
COPY docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["mapproxy"]
USER mapproxy
VOLUME ["/mapproxy"]
EXPOSE 8080
# Stats
EXPOSE 9191