forked from hemamaps/StaticMapService
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (18 loc) · 802 Bytes
/
Dockerfile
File metadata and controls
24 lines (18 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM ubuntu:14.04
MAINTAINER Yue Zhou "yue@hemamaps.com.au"
ADD .docker/depends /depends
RUN apt-key add /depends/nginx_signing.key; \
echo "deb http://nginx.org/packages/ubuntu/ trusty nginx" > /etc/apt/sources.list.d/nginx.list; \
apt-get update; \
apt-get install -q -y supervisor nginx python-gdal python-mapnik2 python-pil python-dev python-virtualenv
RUN python /depends/get-pip.py virtualenv;
RUN virtualenv --system-site-packages /opt/ve/deploy; \
/opt/ve/deploy/bin/pip install -r /depends/requirements.txt
RUN useradd deploy
ADD staticMaps /opt/apps/staticMaps
ADD .docker/nginx /opt/nginx
ADD .docker/supervisor /opt/supervisor
ADD .docker/bin /opt/bin/deploy
ADD .docker/rsyslog.conf /etc/rsyslog.conf
EXPOSE 8000
CMD ["/opt/bin/deploy/run_supervisord.sh", "web"]