forked from mapseed/platform
/
Dockerfile
36 lines (25 loc) · 1015 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
###########################################################
# Dockerfile to build Python WSGI Application Containers
# Based on Ubuntu
############################################################
# Set the base image to Ubuntu
FROM ubuntu:14.04
# File Author / Maintainer
MAINTAINER Luke Swart <luke@smartercleanup.org>
# Update the sources list
RUN apt-get update -y
# Install basic applications
RUN apt-get install -y tar git curl wget dialog net-tools build-essential gettext
# Install Python and Basic Python Tools
RUN apt-get install -y python-distribute python-pip python-dev
# Install Postgres dependencies
RUN apt-get install -y postgresql libpq-dev
# Deploy from our git repository
RUN git clone https://github.com/smartercleanup/duwamish.git && cd duwamish && git checkout docker-deploy && cd -
# local testing:
# ADD . duwamish
# Install pip requirements
RUN pip install -r /duwamish/requirements.txt
# Set the default directory where CMD will execute
WORKDIR /duwamish
CMD /duwamish/start.sh