commit | author | age
|
d1e1f5
|
1 |
FROM debian |
JK |
2 |
|
|
3 |
RUN apt-get -y update \ |
|
4 |
&& apt-get -y dist-upgrade \ |
|
5 |
&& apt-get -y install mapproxy python-mapnik uwsgi \ |
|
6 |
fonts-noto ttf-unifont \ |
|
7 |
&& groupadd -r -g 500 mapproxy \ |
|
8 |
&& useradd -r -u 500 -g 500 mapproxy \ |
|
9 |
&& mkdir -p /home/mapproxy \ |
|
10 |
&& chown mapproxy:mapproxy /home/mapproxy |
|
11 |
RUN apt-get -y install uwsgi-plugin-python |
|
12 |
|
|
13 |
EXPOSE 8080 |
|
14 |
|
|
15 |
USER mapproxy |
|
16 |
WORKDIR /home/mapproxy |
|
17 |
|
a32ed5
|
18 |
ENV MAPPROXY_PROCESSES 4 |
JK |
19 |
|
d1e1f5
|
20 |
COPY mapproxy.yaml wsgi.py start.sh ./ |
JK |
21 |
COPY mapnik.py /usr/lib/python2.7/dist-packages/mapproxy/source/mapnik.py |
|
22 |
|
|
23 |
CMD ./start.sh |