forked from onaio/onadata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (41 loc) · 1.06 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM ubuntu:16.04
ENV DEBIAN_FRONTEND noninteractive
ENV PYTHONUNBUFFERED 1
RUN apt-get update \
&& apt-get install -y postgresql-client \
libproj-dev \
gdal-bin \
memcached \
libmemcached-dev \
build-essential \
python-pip \
python-virtualenv \
python-dev \
git \
libssl-dev \
libpq-dev \
gfortran \
libatlas-base-dev \
libjpeg-dev \
libxml2-dev \
libxslt-dev \
zlib1g-dev \
python-software-properties \
ghostscript \
python-celery \
python-sphinx \
openjdk-9-jre-headless \
python-virtualenv \
locales
RUN locale-gen en_US.UTF-8
RUN mkdir -p /srv/onadata/requirements
ADD requirements /srv/onadata/requirements/
WORKDIR /srv/onadata
RUN virtualenv /srv/.virtualenv
RUN . /srv/.virtualenv/bin/activate; \
pip install pip --upgrade && pip install -r requirements/base.pip
ADD . /srv/onadata/
ENV DJANGO_SETTINGS_MODULE onadata.settings.docker
RUN rm -rf /var/lib/apt/lists/* \
&& find . -name '*.pyc' -type f -delete
CMD ["/srv/onadata/docker/docker-entrypoint.sh"]