Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (22 sloc) 758 Bytes
# Create a container from Ubuntu.
FROM ubuntu:14.04
# Credits.
MAINTAINER Guido Barbaglia "guido.barbaglia@gmail.com"
# Update Ubuntu repositories.
RUN apt-get update
# Install Python.
RUN apt-get install -y -q build-essential python-gdal python-simplejson
RUN apt-get install -y python python-pip wget
RUN apt-get install -y python-dev
# Create a working directory.
RUN mkdir deployment
# Install VirtualEnv.
RUN pip install virtualenv
# Add requirements file.
ADD requirements.txt /deployment/requirements.txt
# Add the script that will start everything.
ADD start.py /deployment/start.py
# Run VirtualEnv.
RUN virtualenv /deployment/env/
RUN /deployment/env/bin/pip install wheel
RUN /deployment/env/bin/pip install -r /deployment/requirements.txt