-
Notifications
You must be signed in to change notification settings - Fork 61
/
Dockerfile
executable file
·45 lines (38 loc) · 1.25 KB
/
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
40
41
42
43
44
45
#--------- Generic stuff all our Dockerfiles should start with so we get caching ------------
ARG IMAGE_VERSION=3.11.5
FROM python:${IMAGE_VERSION}
MAINTAINER Tim Sutton<tim@kartoza.com>
#-------------Application Specific Stuff ----------------------------------------------------
ARG MAPPROXY_VERSION=''
RUN apt-get -y update && \
apt-get install -y \
gettext \
python3-yaml \
libgeos-dev \
python3-lxml \
libgdal-dev \
build-essential \
python3-dev \
libjpeg-dev \
zlib1g-dev \
libfreetype6-dev \
python3-virtualenv \
figlet \
gosu awscli; \
# verify that the binary works
gosu nobody true
RUN pip3 --disable-pip-version-check install Shapely Pillow MapProxy${MAPPROXY_VERSION} uwsgi pyproj boto3 s3cmd \
requests riak==2.4.2 redis numpy
RUN ln -s /usr/lib/libgdal.a /usr/lib/liblibgdal.a
# Cleanup resources
RUN apt-get -y --purge autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
EXPOSE 8080
ADD build_data/uwsgi.ini /settings/uwsgi.default.ini
ADD build_data/multi_mapproxy.py /multi_mapproxy.py
ADD scripts /scripts
RUN chmod +x /scripts/*.sh
RUN echo 'figlet -t "Kartoza Docker MapProxy"' >> ~/.bashrc
ENTRYPOINT [ "/scripts/start.sh" ]
CMD [ "/scripts/run_develop_server.sh" ]