-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 758 Bytes
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 758 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
25
26
27
28
29
30
# 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