forked from itsjustbrian/etools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-dev
More file actions
58 lines (49 loc) · 1.32 KB
/
Copy pathDockerfile-dev
File metadata and controls
58 lines (49 loc) · 1.32 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
FROM python:2.7
# Install dependencies
RUN apt-get update
RUN apt-get install -y --no-install-recommends \
build-essential \
libcurl4-openssl-dev \
libjpeg-dev \
vim \
ntp \
libpq-dev
RUN apt-get install -y --no-install-recommends \
git-core
RUN apt-get install -y --no-install-recommends \
python-dev \
python-software-properties \
python-setuptools
RUN apt-get install -y --no-install-recommends \
postgresql-client \
libpq-dev \
python-psycopg2
RUN apt-get install -y --no-install-recommends \
python-gdal \
gdal-bin \
libgdal-dev \
libgdal1h \
libgdal1-dev \
libxml2-dev \
libxslt-dev \
xmlsec1
# appdirs needs to be upgraded before setuptools, or else it will break the next cmd install
RUN pip install --upgrade appdirs
RUN pip install --upgrade \
setuptools \
virtualenv \
virtualenvwrapper \
fabric \
pip \
wheel
# http://gis.stackexchange.com/a/74060
ENV CPLUS_INCLUDE_PATH /usr/include/gdal
ENV C_INCLUDE_PATH /usr/include/gdal
ARG REQUIREMENTS_FILE
ADD ./EquiTrack/requirements/*.txt /pip/
ADD ./EquiTrack/requirements/$REQUIREMENTS_FILE /pip/app_requirements.txt
RUN pip install -f /pip -r /pip/app_requirements.txt
ENV PYTHONUNBUFFERED 1
VOLUME "./:/code/"
WORKDIR /code/
ENV DJANGO_SETTINGS_MODULE EquiTrack.settings.local